-
-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
painting images from imlib2 with cairo #17
Comments
Is this issue still outstanding in the current version of Conky? If so, please update this issue. Otherwise, the issue will be closed in 2 weeks. |
As far as I can tell the aforementioned example doesn't work. See random sample here: https://gist.github.com/wxg4net/7210517 It is possible to use the imlib2 stuff but I'm not aware of being able to intermix it with cairo like that exactly. You can do transparency with imlib but are limited once you don't have png specifically, and I'm not aware of any cairo transparency image function directly, so you need to mix them, and it may not be possible. Is there any documentation on that issue directly? If someone wants a non-png watermark, is it possible? Can you directly use a jpg as a transparent image? |
We want to use CoreWLAN framework.
We want to use CoreWLAN framework.
We want to use CoreWLAN framework.
* Try to amend #31 * BUILD_WLAN should be available for all OS. Keep BUILD_WLAN OFF by default for compatibility reasons. * WLAN-related variables should be available for every OS. There are some problems (probably null-dereference) * Fix $wireless_essid crashing conky if no argument provided. Conky wasn't parsing the argument of the variable as it should, thus wasn't allocating the `dev` member variable. Also fix some documentation stuff. * Improve `get_freq` #20 Using the Intel® Power Gadget API (https://software.intel.com/en-us/blogs/2012/12/13/using-the-intel-power-gadget-api-on-mac-os-x) we can now get actual Core frequency and not the constant factory one. Though, for some weird reason the API gives the same freq for all Cores, thus the |cpu| arg becomes useless. * Oops, this accidently slipped in * Introduce BUILD_IPGFREQ build option This build option has been introduced for one particular reason: On macOS getting current core-frequency is not supported by the APIs. A solution is to install Intel's ® Power Gadget which comes with an .app, a Framework and a kernel-extension. Though, this may trouble some alot, thus introduce BUILD_IPGFREQ. * Forgot static here. * Some improvements for get_freq again. Fix frequency not printing correctly (I wasn't using the divisor) Add more guards. * Setup cmake files and project code for Objective-C code #17 We want to use CoreWLAN framework. * update_cpu_usage() now supports multiple cores Also, some cleanup. * Updated default conky config to monitor Mac Networking * Made Mac Friendly BuildOptions and generic default conky configs * Undid Xdamage config and cleaned up previous IF statements * Re-Added XDamage fix * Finish up the algorithm. I think its now correct. Closes: #33 * Cleanup macro and introduce a no-op free_cpu() function for ALL cpu-related variables free_cpu() must be implemented for every OS and on all except macOS its a no-op function. * Reformat, add empty comment.
* Try to amend #31 * BUILD_WLAN should be available for all OS. Keep BUILD_WLAN OFF by default for compatibility reasons. * WLAN-related variables should be available for every OS. There are some problems (probably null-dereference) * Fix $wireless_essid crashing conky if no argument provided. Conky wasn't parsing the argument of the variable as it should, thus wasn't allocating the `dev` member variable. Also fix some documentation stuff. * Improve `get_freq` #20 Using the Intel® Power Gadget API (https://software.intel.com/en-us/blogs/2012/12/13/using-the-intel-power-gadget-api-on-mac-os-x) we can now get actual Core frequency and not the constant factory one. Though, for some weird reason the API gives the same freq for all Cores, thus the |cpu| arg becomes useless. * Oops, this accidently slipped in * Introduce BUILD_IPGFREQ build option This build option has been introduced for one particular reason: On macOS getting current core-frequency is not supported by the APIs. A solution is to install Intel's ® Power Gadget which comes with an .app, a Framework and a kernel-extension. Though, this may trouble some alot, thus introduce BUILD_IPGFREQ. * Forgot static here. * Some improvements for get_freq again. Fix frequency not printing correctly (I wasn't using the divisor) Add more guards. * Setup cmake files and project code for Objective-C code #17 We want to use CoreWLAN framework. * update_cpu_usage() now supports multiple cores Also, some cleanup. * Updated default conky config to monitor Mac Networking * Made Mac Friendly BuildOptions and generic default conky configs * Undid Xdamage config and cleaned up previous IF statements * Re-Added XDamage fix * Finish up the algorithm. I think its now correct. Closes: #33 * Cleanup macro and introduce a no-op free_cpu() function for ALL cpu-related variables free_cpu() must be implemented for every OS and on all except macOS its a no-op function. * Reformat, add empty comment.
@plikhari Are you able to help here? |
From what I have understood - Most people look at So if we have images that are non We can close this as it is beyond the scope of |
Sounds good to me. This issue has been left open for a little too long. @wujek-srujek @zcot, I hope you find the above comment useful. I'll be closing this. If you had found your answers long ago or had some more information to share, please share them with us. Thank you. |
I noticed there is some new functionality to paint images from imlib2 with cairo. I build conky today from master and it seems not to work properly, or I'm doing things wrong. When I scale an image down, the transparency in png or gif does not work and the background is black. If I scale a png up, I get quite a few funny artifacts.
Also, the new function as of now just allows to paint an image with full opacity, I think. It would be much better to allow users to set custom transparency as well. Actually, the best thing would be to allow the call:
local surface = cairo_image_surface_create_for_data(imlib_image_get_data_for_reading_only(), ..
to work fine. Currently I always get the errors that argument #1 is userdata but should be string - I guess that's because the cairo functions takes unsigned char* and tolua++ needs a string there? (I guess that's the main reason for the function, but I am not sure.) As I have little idea about c or c++, even less about lua and don't know nothing about tolua++, I am not sure if this is doable.
The text was updated successfully, but these errors were encountered: