How to convert one image format to another via command line

There are hundreds of different image formats. They are split into two different categories. Vector graphics and Raster graphics

=List of common image formats=

more complete list

=Conversion Software=
 * ghostscript: http://ghostscript.com/
 * skencil: http://www.skencil.org/
 * pstoedit: http://www.pstoedit.net/
 * png2ico: http://www.winterdrache.de/freeware/png2ico/
 * libicns: http://icns.sourceforge.net/
 * inkscape: http://www.inkscape.org/
 * imagemagick: http://www.imagemagick.org
 * Able Batch Converter:http://www.sharewareguide.net/Utilities/File-Disk-Management/able-batch-converter.html

=Raster to Raster Conversion=

Imagemagick Convert

 * Supported Conversions
 * Full list of convertable format
 * R means Imagemagick can only read that format, it can not convert to that format
 * RW means Imagemagick can read that format, and can convert to that format


 * Requirements
 * imagemagick



non utile cazzo

 * Requirements
 * png2ico


 * commands
 * png2ico FILE_IN.png FILE_OUT.ico

PNG to ICNS

 * Requirements
 * libicns


 * commands
 * png2icns FILE_IN.png FILE_OUT.icns

=Vector to Vector Conversion=

EPS to SVG

 * Requirements
 * ghostscript
 * skencil
 * pstoedit


 * commands
 * eps2eps -dNOCACHE FILE_IN.eps temp1.eps
 * pstoedit -f sk temp.eps temp.sk
 * skconvert temp.sk FILE_OUT.svg


 * Script
 * http://openiconlibrary.sourceforge.net/eps2svg.html

SVG to EPS

 * Requirements
 * inkscape


 * commands
 * inkscape -f FILE_IN.svg -E FILE_OUT.eps

SVG to PDF

 * Requirements
 * inkscape


 * commands
 * inkscape -f FILE_IN.svg -A FILE_OUT.pdf

EPS to SK

 * Requirements
 * ghostscript
 * pstoedit


 * commands
 * eps2eps -dNOCACHE FILE_IN.eps temp1.eps
 * pstoedit -f sk temp.eps FILE_OUT.sk

=Vector to Raster Conversion=

SVG to PNG

 * Requirements
 * inkscape


 * commands
 * inkscape -f FILE_IN.svg -w 256 -h 256 -e FILE_OUT.png
 * for a png width=256, height=256