海阔天空-wide-area

海阔天空,随心所欲,有什么,说什么,Linux,VC,Network Programming

星期日, 五月 17, 2009

Covert eps files to jpg in Linux

To convert from eps to jpg using ghostscript:

gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300
-sOutputFile=myfile.jpg myfile.eps

This produces huge files. You can trim and resize them in image magick:

mogrify -trim -resize 800x600 myfile.jpg

0 Comments:

发表评论

<< Home