EPS vs. PS [message #40675] |
Tue, 24 August 2004 22:11  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
This isn't really an IDL question, but I figured that some of you might
have dabbled more in image file formats that I have. I have some object
graphics and created an EPS file (which looks really nice, BTW). I
couldn't find any way to save the object graphics as normal PS. Despite
David's notes on this
(http://www.dfanning.com/ographics_tips/object_eps.html), I couldn't
even get the printer thing to work.
It was then that I had what I thought was a brilliant idea. I used
ImageMagick to convert the EPS to a PS. I printed out both files. The
EPS file looked awesome -- everything nice and smooth and crisp. The
printout of the PS file had some fuzziness about it. It appeared that
the conversion was done by rastorizing the EPS and saving that as PS.
The rastorization would have produced the fuzziness I saw. So, does
anyone know how to convert EPS to PS and preserve the vector-ness of the
EPS? Maybe there's an option of ImageMagick I don't know about yet or
maybe even something in IDL itself? Ideas? Any PS gurus out there?
-Mike
|
|
|
|
|
Re: EPS vs. PS [message #40945 is a reply to message #40741] |
Tue, 07 September 2004 06:15  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
>> As circuitous as this is, I learned that I can do this with ImageMagick:
>>
>> convert file.eps file.pdf && convert file.pdf file.ps
>>
>>
>> Going through PDF in the middle causes the final Postscript file to
>> keep the vector information rather than changing it to raster image.
>
>
> How do you know this? Are you sure it is not just a high-resolution image.
Yes. Looking at the PostScript file, you see actual postscript commands
in the eps file, but the converted ps file has a raster image embedded.
Also the latter file is orders of magnitude larger than the former.
>> The odd thing is that the simpler command causes the PS created to be
>> a raster image.
>>
>> convert file.eps file.ps
>>
>> Strange behavior if you ask me.
>
>
> Not strange for an *image* manipulation program like ImageMagick. The
> strange thing is the behaviour you report for the PDF file.
I think ImageMagick is a doing a direct translation from PS commands to
PDF commands... and so the commands are being preserved rather than
being converted. Why it happens that way, I don't know.
-Mike
|
|
|