4

I am using Linux. I want to convert an eps file to jpeg file. I find that I can use "convert" command. However, the resulting image looks very small. I want to enlarge the jpeg file by -resize option. It seems not to work. The resulting image is a pure black one. Does anyone have the same problem?

Here are more details:

  1. If I use:

    convert -scale 1000x1000 your.eps your.jpg
    

    The resulting image looks like a low quality image. The eps vector image is not scaled properly.

  2. If I use:

    convert -geometry 300% your.eps your.jpg
    

    I get a pure black image.

Here is my phf file:

2shared.com/document/RXl2Be-g/askquestions.html

and my eps file:

2shared.com/file/qrmwKegj/askquestions.html

Gareth
  • 19,080
Anand
  • 141

4 Answers4

1

Updated: This should work (-flatten did the trick for me)

convert -geometry 110% your.eps -flatten your.jpg
aioobe
  • 284
  • 1
  • 18
1

Inkscape can convert Encapsulated PostScript into PNG data:

inkscape -D -e "$OUPUT_PNG" -h "$HEIGHT_PX" -w "$WIDTH_PX" "$INPUT_EPS"
1

I would use ghostscript:

gs -dNOPAUSE -r300 -sDEVICE=jpeg -sOutputFile=<output.jpg> <input.eps>
Curd
  • 121
1

You have to set desired resolution (in dpi) before reading a file, for example:

convert -density 600x600 your.eps -quality 85 your.jpg

If you need to resize it to particular resolution then read in high density and then resize:

convert -density 1200x1200 your.eps -scale 1000x1000 -quality 85 your.jpg
Tometzky
  • 486