Page 1 of 1
Setting PNG as icon for user button shows incorrect image
Posted: 25 May 2015 17:27
by Patrick Schönbach
Hello,
if I try to associate a PNG icon to a user button, I see the correct preview in the "Browse" dialog, however, the button itself shows the icon of the viewer associated to PNG files, not the image contents themselves.
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 25 May 2015 17:59
by kodyman
To use a PNG image an an icon it first has to be converted to an icon (.ico) format.
Here's a link I found that lists some programs and sites to help with the conversion.
http://answers.microsoft.com/en-us/wind ... 7c26ae13d9
Others correct me if I've missed something in XY that allows regular images to be used.
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 25 May 2015 19:46
by bdeshi
XY only supports ico and exe (first embedded icons are used for exes) and there's crude support for cur and ani. other extensions puts the icon for that extension (CFIs + system).
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 25 May 2015 20:42
by admin
Well, I'm a listening author ...

... and I didn't hear this question for the first time, so I added support for PNG, JPG, GIF, BMP, TIF. Next beta...
PS: My photo drop stack now has a picture of Betty Davis (400x400 JPEG):
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 26 May 2015 08:17
by Stef123

An old wish of mine come true. Now that I've dealt with converters and ico-spacers

That's life. Not always does the early bird catch the worm.
A note-worthy side-effect: It's become easier to generate empty spacer-buttons with fully transparent gif or png
Looks better and cleaner imo than several separators side by side or using the ini-tweak ToolbarSepFac=2-10
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 26 May 2015 08:40
by bdeshi
Don, would it be possible to somehow use different files or better, different areas of the file as large and small btn icon?
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 26 May 2015 12:28
by admin
SammaySarkar wrote:Don, would it be possible to somehow use different files or better, different areas of the file as large and small btn icon?
Technically yes, but it seems to be a bit overdone at the moment.
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 26 May 2015 12:38
by nerdweed
I was surprised to see this in change log last night.
Everything Everywhere - Could you add this support to portable file icons as well please.
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 26 May 2015 12:41
by admin
That would be too slow. As I mentioned in the change log...

Re: Setting PNG as icon for user button shows incorrect imag
Posted: 26 May 2015 16:26
by bdeshi
admin wrote:That would be too slow. As I mentioned in the change log...

There's always the Tweak-force.
admin wrote:SammaySarkar wrote:Don, would it be possible to somehow use different files or better, different areas of the file as large and small btn icon?
Technically yes, but it seems to be a bit overdone at the moment.
okay, no big deal [yet].
Re: Setting PNG as icon for user button shows incorrect imag
Posted: 27 May 2015 11:59
by nerdweed
admin wrote:That would be too slow. As I mentioned in the change log...

Trying to understand, what would cause the slowness
1. Would the non ico formats be converted to ico and then rendered.
2. Large dimensions of images - Possibily we can reuse the thumb cache
P.S. This is neither air nor water - I can live without it

Re: Setting PNG as icon for user button shows incorrect imag
Posted: 27 May 2015 12:30
by admin
"The graphics are live-loaded from disk."
*everytime* they are displayed in a new screen position...