ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

wanted: way to batch/script manipulate image (ICO) files

(1/2) > >>

tinjaw:
I have a bunch of icons (.ICO) files that I need to create various colored set of. For example, all the icons are black on cyan and I need to make a black on red set, a black on green set, etc.

I am looking into the following:

* python using Python Image Library (but it only handles ICO read-only)
* python controlling Paint Shop Pro (but I don't own a copy of PSP)
* using MS Paint, Ritalin, & caffeine
I was wondering if there is some magic tool I am overlooking.

[update]
It looks like GIMP is scriptable with python.

CWuestefeld:
I'd look at scripting ImageMagic. It's very high quality and can do pretty much everything you can imagine (assuming that you can figure out the arguments to send it).

scancode:
I'd read the icon, edit it, save as PNG, and use PNG2ICO... :)

Edvard:
1- Rip the icons: http://www.thugsatbay.com/tab/?q=other_tabiripp
2- Manipulate the png's with Gimp or ImageMagick or PIL (whichever works best and fastest)
3- Pack them back together with your favorite icon editor. I've been liking IcoFx lately.

If you want a command-line tool for the re-packing, Matthias Brenkmann's png2ico doesn't do 32-bit icons, so go to http://mattahan.deviantart.com/art/GANT-3-15364715 and download the icon package. Inside is a nifty utility named png2ico written by Andreas Verhoeven (of AveDesk fame...) that does 32-bit icons. It takes a trip through the help to get the hang of it, but basically it takes all the pngs in a folder and transforms them into bundled ico's at different sizes. The only drawback is it starts with a png and resizes, so start with the biggest one you can extract.
Here's the batch file I use. Just drop a file of 128 px pngs on the .bat :

--- ---png2ico.exe -s 128 32bpp -s 64 32.bpp -s 48 32bpp -s 32 32bpp -s 24 32bpp -s 32 16bpp -s24 16bpp -s16 16bpp -i %1 -o %1\icons\

Edvard:
Also, the IcoBundle utility can take multiple .ico files and "bundle" them together.
http://www.telegraphics.com.au/sw/#icobundle

Navigation

[0] Message Index

[#] Next page

Go to full version