Convert 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

Advertisement

5 Responses to “Convert eps files to jpg in Linux”


  1. 1 Fred Voetsch March 2, 2010 at 5:34 pm

    Very helpful. I was able to convert a file that Imagemagick would not so now I know the problem is not Ghostscript.

  2. 2 paresh March 30, 2010 at 9:27 am

    Hello

    I know how to convert eps format to jpeg format
    but i don’t know how to convert from jpeg format to eps format

    So,please give me reaply as well as possbile in my email id

  3. 4 Liming Zhang August 4, 2010 at 3:07 pm

    Very helpful, thanks a lot!

  4. 5 Marcelo March 10, 2011 at 7:40 pm

    When the simple “convert myfile.eps myfile.jpg” doesn’t work properly, your solution gives a perfect conversion!!!! You can’t imagine how happy I am. You just solved a huge problem in my thesis presentation!!!!!! :D


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.