[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with icns file

From: Bertrand Dekoninck
Subject: Re: Problem with icns file
Date: Sat, 27 Feb 2021 00:04:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

Le 26/02/2021 à 23:18, Fred Kiefer a écrit :
Just to understand the issue a bit better. Are you using libicns to read the 
icns file or is the fallback to the GNUstep implementation used? The later 
implementation is rather limited and won’t be able to handle your added formats.

And why didn’t you add a 48x48 version?

To be clearer : I add for each app a resource folder in Sombre.theme/Resources. Here, I add Sombre.theme/Resources/org.gap.InnerSpace.

And I place the custom icon inside. It must be named as is named the appicon in InnerSpace plist file : InnerSpace_Icon.icns.

I tried to replace it with a 48x48 InnerSpace_Icon.tiff but it didn't work. Should it work ? If so, I must have missed something and should retry. I remember to have replaced tiff files with png files in rik.theme long ago.

So to answer your question, I don't think I use libicns, unless GWorkspace uses it to read icns files. But I don't see this library in its dependancies.

I would like to be able to reproduce the same sizes as Greg in my icns file, but I don't know how. If I don't generate the missing @2x files with my conversion script, iconutil complains about them and fail on osX ElCapitan. I tried my conversion script on osX Leopard, but it misses the iconutil tool.



Am 26.02.2021 um 20:21 schrieb Bertrand Dekoninck <bdekoninck@free.fr>:

Hi everyone !

I'm working on theming icons again and ma facing a problem with InnerSpace icns 
icon. This is the first icns ifle I've encountered in gnustep applications 
resources folder.

I've created a custom SVG icon for it, which I've converted to 1024x1024 png.

I don't now how Gregory did generate its original InnerSpace_Icon.icns file.

I didn't find any linux tool to convert it to icns file and only found a little 
script on the web using apple's sips and iconutil tools.

The problem is that the resulting icon doesn't display properly at 48x48 size 
in GWorkspace. At this size, the icon displayed is in fact the 32x32 one and is 
smaller than all the others. I think GNUstep and/or GWorkspace don't display 
correctly high res icns file at this size.

I can see on Macos Preview differences between my icns and Greg's one :

Greg's contains 16x16, 32x32, 128x128, 256x256, 512x512 at 72 ppm sizes, plus a 
512x512@2x (1024x1024 at 144 bpm).

Mine contains the same plus 16x16@2x, 32x32@2x, 128x128@2x, 256x256@2x.

I attach the script used to generate the icon and the icon itself to this mail.

Can someone help me figure out how to override this problem ?

Last question : Gworkspace seems to display  icons better at 64x64 if it's an 
icns file than a 48x48 tiff file. Should I increase the size of my icons ? 
Would it be possible to implement bigger sizes in GWorkspace (128 ? 256 ?) 
using bigger tiff files or this format containing multiple files? GWorkspace is 
a little poor looking compared to other filemanagers and desktop  in this area.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]