On Nov 23, 10:33 pm, Yuval Levy <[email protected]> wrote:
> I would really, really, really like to have the icon creation process scripted
> / streamlined, but if it does not work, we'll have to go the manual tweaking
> way, or maybe even with Gimp like you did with the old icons.
>
> I think that Gimp can be scripted, but I have no experience with scripting
> Gimp and don't know if the specific functionality we need can be scripted.

After some frustration with png2ico/ImageMagick, I gave up and
scripted GIMP to generate the icons. Apparently, png2ico does not work
with 24-bit color or partial transparency/translucency. My new
solution is not perfect though, but the icons look much better. Since
GIMP does not allow one to set save options through script-fu, I
removed the 4-bit icons since they were actually saving as 8-bit. I'm
not sure why Microsoft recommended them in the first place as Windows
has had support for 8-bit icons since Windows 3.0 (released 1990). The
other issue is the lack of PNG (deflate) compression that leads to
almost three times the file size compared to the compressed icon. I
tried adding the larger PNG icon in with ImageMagick, but the software
doesn't appear to allow one to use deflate compression for anything
other than PNG. I could manually save new copies of the icons with PNG
compression or cause the script to prompt for save options, but I
think that would defeat the purpose of scripting the process in the
first place and is not worth it.

I wasn't sure where to commit the changes with the new 2010.4 branch
so I committed the changes to the trunk.

Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to