Converting to large ICO format
Posted: 2014-01-05T06:25:09-07:00
I'm trying to convert to ICO format with many sizes including large ones.
I'm able to view the output image in image viewers but my app can't access the ones larger than 256, opening the same output image in Axialis IconWorkshop and saving it (without modification) will make it work.
I'm I missing something in the command line?
Help appreciated.
I'm able to view the output image in image viewers but my app can't access the ones larger than 256, opening the same output image in Axialis IconWorkshop and saving it (without modification) will make it work.
I'm I missing something in the command line?
Code: Select all
convert.exe "c:\output_image.jpg"
-gravity center
( -clone 0 -resize 120x120 ( +clone -background black -shadow 80x2+0+0 ) +swap -background transparent -layers merge -extent 128x128 )
( -clone 0 -resize 248x248 ( +clone -background black -shadow 80x2+0+0 ) +swap -background transparent -layers merge -extent 256x256 )
( -clone 0 -resize 376x376 ( +clone -background black -shadow 80x2+0+0 ) +swap -background transparent -layers merge -extent 384x384 )
( -clone 0 -resize 504x504 ( +clone -background black -shadow 80x2+0+0 ) +swap -background transparent -layers merge -extent 512x512 )
-delete 0 -alpha on -type TrueColorMatte -compress Zip
"c:\output_image.ico"