Gimp-Forum.net
Icon theme - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Icon theme (/Thread-Icon-theme)



Icon theme - meetdilip - 02-09-2023

Hi, I am working on an icon theme for Ubuntu. It is based on Yaru ( the default icon theme ). The difficult part is that there are many sizes of PNGs that Yaru ask for each image.

I was wondering if there can be some script or so that can resize an image into all Yaru-compatible icon sizes?  Something like we have for iconify.

[attachment=9354]

An image needs to be in 256, 48, 3, 24, 22, 16 and 8 sizes for the icon theme to work properly.

For now, I am using a 256x256 for all. It causes burr ing at edges, in some cases, info windows show a big image than a small icon due to the parent image size.

Any help would be great. Thanks.


RE: Icon theme - Ofnuts - 02-09-2023

ofn-export-sizes will export your image scaled to specified sizes.


RE: Icon theme - meetdilip - 02-09-2023

Awesome!!

Thanks admin :trophy-emoji


RE: Icon theme - rich2005 - 02-09-2023

A least that is a Gimp solution. Best I could come up with is a ImageMagick script

That is one monster task. The Yaru theme is a monster: 140 folders / 5787 files / 11428 items (lots of symbolic links) a script to do all at once is beyond me.

Suggest one file at a time, as they are created. A project folder with the size folders then for any 256x256 icon a script to resize and put in the appropriate folder.

Code:
#!/bin/bash

convert $1 -resize 48x48 ~/temp/48/$1
convert $1 -resize 32x32 ~/temp/32/$1
#...as many different sizes as you like..as long as there is a folder
convert $1 -thumbnail 24x24 ~/temp/24/$1
convert $1 -interpolate Integer -filter point -resize 8x8 ~/temp/8/$1

Those tiny sizes are a problem, a regular resize just leaves a smudge so slight changes. 8x8 is still a problem.

Remember the filename parameter autocompletes so not a lot of typing required

This a screenshot of my try-out.


RE: Icon theme - meetdilip - 02-09-2023

Thanks, I not using Ubuntu now, will try as soon as I am on it.

The Yaru theme is a superset of the Yaru icon theme. I am modifying only the icon theme ( just in case you got confused ) which has only the listed folders.

I have the Yaru full source and can build from it if the new icons are all SVG. I am able to build a few of them using Blender, so there is no SVG to use in the source files to build.

I left the original default Yaru theme in the system untouched. Copied the files and gave them a new name and is adding to .icons in the home folder.


RE: Icon theme - rich2005 - 02-09-2023

Yeh...not a great lover of stock Ubuntu desktop. I have used KDE in various forms for a long time. Suits my requirements

Not confused. I download the yaru deb package: http://mirrors.kernel.org/ubuntu/pool/main/y/yaru-theme/yaru-theme-icon_22.04.4_all.deb   ..and unpacked it to find those stats:

[attachment=9360]

A monster: Exclamation By all means modify in any way you wish Wink


RE: Icon theme - meetdilip - 02-10-2023

I decided to stick with default Ubuntu because most tools support it. I had Plasma for a long time but it was hard to keep up with many 3rd party tools' instructions.  

Never knew that there was a deb. I went to /usr/share/icons and grabbed the Yaru folder

Not working on colour schemes, only the default Yaru pack  Smile


https://github.com/ubuntu/yaru/tree/ubuntu/jammy/icons/Yaru