Wikia

How To Wiki

How to convert one image format to another via command line

1,794pages on
this wiki
Talk0

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

List of common image formatsEdit

Raster graphics Vector graphics
Name Extension
PNG .png
Bitmap .bmp
JPEG .jpg or .jpeg
GIF .gif
TIFF .tif or .tiff
Name Extension
SVG .svg
Postscript .ps
Encapsulated Postscript .eps
PDF .pdf

more complete list


Conversion SoftwareEdit

Raster to Raster ConversionEdit

Imagemagick ConvertEdit

Supported Conversions
JPG to PNG PNG to JPG
PNG to BMP BMP to PNG
PNG to GIF GIF to PNG
PNG to TIFF TIFF to PNG
many more
  • 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
commands
  • convert FILE_IN.png FILE_OUT.jpg


PNG to ICOEdit

Requirements
  • png2ico
commands
  • png2ico FILE_IN.png FILE_OUT.ico

PNG to ICNSEdit

Requirements
  • libicns
commands
  • png2icns FILE_IN.png FILE_OUT.icns

Vector to Vector ConversionEdit

EPS to SVGEdit

Requirements
commands
  • eps2eps -dNOCACHE FILE_IN.eps temp1.eps
  • pstoedit -f sk temp.eps temp.sk
  • skconvert temp.sk FILE_OUT.svg
Script

SVG to EPSEdit

Requirements
commands
  • inkscape -f FILE_IN.svg -E FILE_OUT.eps

SVG to PDFEdit

Requirements
commands
  • inkscape -f FILE_IN.svg -A FILE_OUT.pdf

EPS to SKEdit

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


Vector to Raster ConversionEdit

SVG to PNGEdit

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

Around Wikia's network

Random Wiki