convert not obeying -compress None option?
Posted: 2014-01-27T14:51:17-07:00
I'm trying to create a .ico file for a Eclipse icon for windows users.
This is the shell code I'm using:
This seems to work mostly the way I want / expect... except for the fact that the 256x256 image is always stored in
compressed form and 16bit depth.
Eclipse wants the final icon (7/8) to be uncompressed and 32 bit.
I'm not really sure why this doesn't work. It does the correct
thing for 16x16, 32x32, 48x48 icons. It even does the right thing
if I change 256x256 into 128x128.
I tried sticking the "-compress None option" explicitly into the 256x256 line
as well, at the beginning, the end etc. Also at the end of the
command. But no matter what I seem to
do it always ends up with the 256x256 image zip-compressed and 16bits.
Any idea what I may be doing wrong here?
Kris
PS: I didn't come up with these commands on my own but found them
here: https://github.com/neo4j-contrib/neoclipse/pull/56
PS2: Imagemagick version info:
This is the shell code I'm using:
Code: Select all
$ convert sts512.png -border 0 -compress None \
\( -clone 0 -resize 16x16 -colors 256 -depth 8 \) \
\( -clone 0 -resize 24x24 -colors 256 -depth 8 \) \
\( -clone 0 -resize 32x32 -colors 256 -depth 8 \) \
\( -clone 0 -resize 48x48 -colors 256 -depth 8 \) \
\( -clone 0 -resize 16x16 -depth 24 \) \
\( -clone 0 -resize 32x32 -depth 24 \) \
\( -clone 0 -resize 48x48 -depth 24 \) \
\( -clone 0 -resize 256x256 -depth 24 \) \
-delete 0 -alpha off +compress sts.ico
compressed form and 16bit depth.
Code: Select all
$ identify -format '%f %p/%n %m %C/%Q %r %G %A %z\n' sts.ico
sts.ico 0/8 ICO Undefined/0 DirectClassRGBMatte 16x16 True 8
sts.ico 1/8 ICO Undefined/0 DirectClassRGBMatte 24x24 True 8
sts.ico 2/8 ICO Undefined/0 DirectClassRGBMatte 32x32 True 8
sts.ico 3/8 ICO Undefined/0 DirectClassRGBMatte 48x48 True 8
sts.ico 4/8 ICO Undefined/0 DirectClassRGBMatte 16x16 True 32
sts.ico 5/8 ICO Undefined/0 DirectClassRGBMatte 32x32 True 32
sts.ico 6/8 ICO Undefined/0 DirectClassRGBMatte 48x48 True 32
sts.ico 7/8 ICO Zip/0 DirectClassRGB 256x256 False 16
I'm not really sure why this doesn't work. It does the correct
thing for 16x16, 32x32, 48x48 icons. It even does the right thing
if I change 256x256 into 128x128.
I tried sticking the "-compress None option" explicitly into the 256x256 line
as well, at the beginning, the end etc. Also at the end of the
command. But no matter what I seem to
do it always ends up with the 256x256 image zip-compressed and 16bits.
Any idea what I may be doing wrong here?
Kris
PS: I didn't come up with these commands on my own but found them
here: https://github.com/neo4j-contrib/neoclipse/pull/56
PS2: Imagemagick version info:
Code: Select all
convert -version
Version: ImageMagick 6.6.9-7 2012-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP