comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » EPS vs. PS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
EPS vs. PS [message #40675] Tue, 24 August 2004 22:11 Go to next message
Michael Wallace is currently offline  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 #40741 is a reply to message #40675] Sun, 29 August 2004 15:11 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Michael Wallace wrote:
> 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.


> 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.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: EPS vs. PS [message #40782 is a reply to message #40675] Thu, 26 August 2004 03:48 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Michael Wallace wrote:

> 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. 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.
>
>
> -Mike

You should try ps2ps from the ghostscript package.

{{{
ps2ps input.eps input.ps
}}}

Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
Re: EPS vs. PS [message #40945 is a reply to message #40741] Tue, 07 September 2004 06:15 Go to previous message
Michael Wallace is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Colour tables in linux (and default setting of retain)
Next Topic: Text Formatting, Was: Beyond 7-bit ASCII

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:39:51 PDT 2025

Total time taken to generate the page: 0.00669 seconds