externel icon for favorites

Started by sinus, February 27, 2025, 10:33:38 AM

Previous topic - Next topic

sinus

I have troubles to get external icons for favorites.
If I do so (see attachement), I cannot see it in the favorites - panel.

BUT if I hover from above over the favorites-rectangle inside the panel, I can see the icon. 
Curious, if I hover from above over the rectangle, then I see (mostly) instead the icon a black small rectangle. 

And what is unfortunately curious, I see in the file window bar no icon, never. 
Does not matter, if I use a jpg or png or a small one (32x32px) or a bigger one. 
Best wishes from Switzerland! :-)
Markus

Mario

Just tested, works here.
Maybe the reason is that you have both selected and icon and provide an icon file name?

I just used did this (32x32px icon)

Image2.jpg

and it worked immediately in the Favorites Panel and also in the File Window ribbon.

Which icon size did you use?
Any warnings in the log file?
Windows 10 or Windows 11?
IMatch version?

sinus

I do not find any errors in log.
I tried several sizes, from 32x32 to 128x128, but also rectangle sizes.

Attached some icons, what works here, like I described (hover down to top, I see the icon, hover top - down, I see a black rectangle, without hovering I see no icon).

Windows 11
newest IMatch-version
the same results with jpg or pngs

Mario, if you do not see quite quickly a solution or my fault, then let it be, it is not that important.
I will then with more time try more here, maybe I can then give  more infos.


Best wishes from Switzerland! :-)
Markus

Mario

#3
I have the same effect with your JPG and the PNG (which has no alpha channel).
The images are only 24 BPP and that seems to upset the image library I use for this purpose? Need to check.

Apparently, the PNG file is detected as "JPEG 8 Bit progressive", which is apparently not supported for icons. The JPG is detected OK, but also has the effect. When I just render the image without respect to Alpha channel, it works. But then all PNG files with transparent parts show wrong. Something is definitely wrong with these images. How did you create them?

When I add a mask in Photoshop and save the image as PNG, it has 32BPP and works fine for favorites.

2.jpg

Try the attached version of the googly eyes.

sinus

Thanks, Mario.
Wow, case solved!  :)

I have these images simply created by screenshot (Windows shift s).
And then "edited" in my old Photoshop CS6. 

But becase these icons are really not very important for me, I think, I saved them a bit "lousy". 
In this case I can do the same like you with the icons, and with a action inside PS it is done quickly.

Thanks for you help, for me this is solved. And since no user had this effect until now, it seems to be really quite unique because of my bad handling with these pics.
Best wishes from Switzerland! :-)
Markus

sinus

If I do the same like you, Mario, then it works.  :D
Thanks, all is fine now!
Best wishes from Switzerland! :-)
Markus

sinus

Mario, sorry, though one question for my understanding, because I have read the thread with the ribbon-height.

https://www.photools.com/community/index.php/topic,14907.msg104390.html#msg104390

1) My icons are pixel-images and has nothing to do with ribbons.
2) And I cannot make them bigger or smaller, IMatch will scale them to always to the same size

Is this true? (I think so).
Best wishes from Switzerland! :-)
Markus

Mario


Quote1) My icons are pixel-images and has nothing to do with ribbons. 
The external favorite icons you configure are displayed on ribbons and scaled to the same icon height you have configured for ribbons. It is wise to create custom icons in a matching size to avoid blurriness introduced by scaling.

Quote2) And I cannot make them bigger or smaller, IMatch will scale them to always to the same size
You cannot make what bigger or smaller? Ribbons? Or your custom icons? See 1) above.

sinus

I have seen, if I change the size of ribbons in the preferences, all icons does change the size. That is ok.
But the icons, what I created, stay the same size.

I would like having these external icons a bit bigger, but to be honest, it is also ok like it is.

I made some screenshots.
Best wishes from Switzerland! :-)
Markus

Mario

I see.
We're dealing with Favorite icons. IMatch loads them at a size suitable for the Favorites Panel, which is 32 pixel, usually.
This is also what limits the size of the icon for the ribbon.

IMatch would have to be changed to maintain two separate icons in memory for Favorites which have been assigned to the File Window ribbon. Which makes things more complex. The cache currently maps the unique Favorite ID to the corresponding icon, which is efficient and used globally in IMatch.

I'd suggest you add a feature request. Not sure how many users use ribbons > 32 pixels where this would show up as a problem.
When I set ribbon height to 64 pixels (which makes them hard to use, even on a 4K monitor), I get something like this:

Image1.jpg

For all "normal" sized ribbons, the 32 pixel size used for external icons is good enough IMHO:

Image2.jpg

The minimal ribbon height on my system is 26 pixel and I prefer icons at 30 pixels (for better screen shots for the help system). This means even a 32 pixel external icon has to be shrunk slightly.