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

Home » Public Forums » archive » Coyote Library Updated
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Coyote Library Updated [message #87201 is a reply to message #87190] Wed, 15 January 2014 08:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Fabien writes:

> Does that mean that producing raster output is
> slower than before? I always felt that producing raster images out of
> the EPS plots was quite slow (I know this has nothing to do with coyote
> but with imagemagick).

OK, this was much slower (2.25 seconds verses about 1.35 seconds). The
huge advantage of the two-command solution is that I could easily get
the dimensions of the image, which is required if I want to use the
HEIGHT keyword in addition to the WIDTH.

So, in order to do this correctly, I need the dimensions of the
PostScript file. These are available in the Bounding Box values that are
written into every PostScript file, as far as I know. Anyway, I had to
write a program, cgPSDims, to get these values so I can do the resizing
correctly when the HEIGHT keyword is used.

I think it is all working correctly now. Some sampling timings:

No resizing at all. 1.85 sec.
Normal resizing to 25%: 1.36
Resizing with WIDTH keyword: 1.32
Resizing with HEIGHT keyword: 1.33

Incidentally, I forgot to mention this yesterday. I also added an
IM_COMMAND keyword to cgPS2Raster that will return the exact ImageMagick
command I use for creating the raster file. If the keyword is used, the
command is returned, but the SPAWN of the command doesn't happen. I
thought this might help the Mac guys who for God only knows what reason
can't spawn ImageMagick commands, although the same command works
perfectly at the UNIX command line.

Coyote Library here:

http://www.idlcoyote.com/programs/zip_files/coyoteprograms.z ip

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is the sky falling?
Next Topic: plot filled circles

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

Current Time: Wed Oct 08 20:08:33 PDT 2025

Total time taken to generate the page: 0.02042 seconds