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

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


  1. 1 Fred Voetsch March 2 at 17:34

    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 at 09:27

    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 Marcelo March 10 at 19:42

      Try ‘convert myoldfile.jpg mynewfile.eps’
      It works with almost any image format.

  3. 4 Liming Zhang August 4 at 15:07

    Very helpful, thanks a lot!

  4. 5 Marcelo March 10 at 19:40

    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.