I created the following two Borne scripts for doing this.  This first only pulls the images with a palette of 24 or 32 bits.  The second pulls them all.
#!/bin/sh
# Run this in to top level of the directory set of the ICOs
 # you want to extract.echo Creating folders to hold the PNGs pulled from the ICO files.
# Only PNGs with a color pallete of 24 or greater will be extracted.
echo Creating folders to hold the PNGs pulled from the ICO files.
 find . -depth -name "*.ico" -exec mkdir {}.dir \;
echo Pulling the PNGs from the ICO files.
find . -depth -name "*.ico" -exec icotool -p 0 -o {}.dir  -x '{}' \;
#!/bin/sh
# Run this in to top level of the directory set of the ICOs
 # you want to extract.
echo Creating folders to hold the PNGs pulled from the ICO files.
find . -depth -name "*.ico" -exec mkdir {}.dir \;
echo Pulling the PNGs from the ICO files.
find . -depth -name "*.ico" -exec icotool -o {}.dir  -x '{}' \;
 
The site for the icotool is here:  http://www.nongnu.org/icoutils/
There is no longer a doc folder for icotool.  Everything has been moved to the man page.  I learned this reading through the release notes here:  http://www.nongnu.org/icoutils/NEWS
 
The site for creating the shell is here:  http://steve-parker.org/sh/variables1.shtml
This is a discussion on using the icotool:  http://ubuntuforums.org/showthread.php?t=322702
 
This is a discussion of the ICO file format:  http://en.wikipedia.org/wiki/ICO_%28file_format%29
This is also a discussion of the MAC icon files:  http://en.wikipedia.org/wiki/Apple_Icon_Image
 
This is a list of packages used with or on icons:  http://en.wikipedia.org/wiki/List_of_icon_software
This is a nice discussion of the find command:  http://linux.about.com/od/commands/l/blcmdl1_find.htm
 
 
Wednesday, November 11, 2009
Subscribe to:
Post Comments (Atom)
 

No comments:
Post a Comment