Figure format conversion


Revision as of 09:56, 16 March 2012 by Gher (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

General conversions

The software Imagemagick offers the tool convert, able to perform the most common format conversions in command line.

If you want to apply the transformation to a list of files, you can use a script similar to:

for ii in `ls *.pdf`
       ff=`basename $ii .pdf`
       echo $ii '-->' ${ff}
       convert -quality 100 -density 300 $ii $ff

which will convert all the pdf files into png files.

Postscript (or encapsuled postscript) to pdf

ps2pdf -dEPSCrop figureIN.eps figureOUT.pdf

ps2pdf manual:

pdf to png

convert -density 500x500 figureIN.pdf figureOUT.png

the argument of density specifies the pdf dpi resolution.

Check also

Personal tools