Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few EPS files that have an arbitrary size dimension (x/y) but are all 72 DPI. I need to convert them to 600 DPI as well as scale the width to 3.25 inches. I don't care what the height is, but I want to keep the aspect ratio the same. Here's what I tried:

For my input image, I figured out the pixel dimension is 414x336. I need to convert to 3.25 at 600 DPI.

3.25 * 600 = 1950

1950/(414/336) = 1583 (rounded up)

So I used ghostscript with the following parameters:

gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=epswrite -r600 -g1950x1583 -dEPSFitPage -sOutputFile=Figure_1_600.eps Figure_1.eps 

This gives me an image with the appropriate dimensions (and aspect ratio) but it's still at 72 DPI when I want it to be 600 DPI.

identify -format "%w x %h %x x %y" Figure_1_600.eps 
235 x 190 72 Undefined x 72 Undefined

I feel like I'm missing something silly here... is it the order? Can you not do both in the same statement?


share|improve this question

You must log in to answer this question.

Browse other questions tagged .