Convert Ico to pngs : specifying png filenames

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Sisko
Posts: 2
Joined: 2015-06-17T14:39:27-07:00
Authentication code: 6789

Convert Ico to pngs : specifying png filenames

Post by Sisko »

Using the command

Code: Select all

convert MyIcon.ico MyIcon.png
I can convert an icon into multiple png files.
But can I specify the naming convention of the png files ?, By default Img generates MyIcon-{x}.png file.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Ico to pngs : specifying png filenames

Post by fmw42 »

As far as I know, you can only do this or at least use _%d or similar to put leading zeroes. I do not know if or how you can name them separately. You can convert them one resolution at a time, by

Code: Select all

convert MyIcon.ico[0] first.png
convert MyIcon.ico[1] second.png
etc
Post Reply