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

Home » Public Forums » archive » Re: thumbnails
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
Re: thumbnails [message #23993] Thu, 01 March 2001 14:17
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
David Fanning wrote:
>
> Reimar Bauer (r.bauer@fz-juelich.de) writes:
>
>> Oh David,
>>
>> why would you like to have a preview of about 100cm x 100cm.
>> I believe the units are cm or am I wrong?
>
> Whoops! Of course. The documentation didn't mention
> anything about units so, naturally, I just assumed
> DEVICE coordinates. I should have known better. :-(

They are device coordinates aren't they? Only thing is, after set_plot,'PS' the device
becomes a euphemistic piece of paper, no?

:o)

paulv

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
pvandelst@ncep.noaa.gov Alexander Pope.
Re: thumbnails [message #23996 is a reply to message #23993] Thu, 01 March 2001 12:17 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Reimar Bauer (r.bauer@fz-juelich.de) writes:

> Oh David,
>
> why would you like to have a preview of about 100cm x 100cm.
> I believe the units are cm or am I wrong?

Whoops! Of course. The documentation didn't mention
anything about units so, naturally, I just assumed
DEVICE coordinates. I should have known better. :-(

So this works well:

IDL> set_plot, 'ps'
IDL> device, /encap, /color, pre_xsize=1, pre_ysize=1, /inches, $
IDL> Pre_depth=8, file='test.eps', preview=2
IDL> tvimage, snap
IDL> device, /close

Takes a fraction of a second, and produces a 1 inch by
1 inch preview image that shows up nicely if I try to
import it into Powerpoint.

Interestingly, the thumbnail doesn't show up if
I am looking at the thumbnail view with the File
Manager. File size is under 1 MByte.

Sorry for the confusion. :-)

Cheers,

David

P.S. Let's just say I still feel partial to the
GhostView "Add EPS Preview..." button, even though
that thumbnail doesn't show up either with the
brain dead File Manager. But IDL is getting closer... :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: thumbnails [message #24000 is a reply to message #23996] Thu, 01 March 2001 11:55 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> I just tried it with a screen snapshot:
>
> snapshot = TVRD(True=1)
> Set_Plot, 'PS'
> Device, /Encapsulate, /Preview, Pre_XSize=100, Pre_YSize=100, $
> Pre_Depth=8, Color=1
> TV, snapshot, True=1
> Device, /Close_File
>
> IDL went away for 5-6 several seconds while the file was written.
> But the resulting file was over 17 MBytes in size!

Whoops! Of course, I should have set the Preview keyword to
2, instead of 1. Now the delay is more on the order or 20
seconds and the file is over 24 MBytes in size. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: thumbnails [message #24002 is a reply to message #24000] Thu, 01 March 2001 11:25 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Dirk Fabian wrote:
>
> In article <MPG.150845c01328cd21989d75@news.frii.com>,
> David Fanning <davidf@dfanning.com> wrote:
>> steve (nobody@nowhere.com) writes:
>>
>>> Does anyone know how to produce *.eps files with thumbnails (in IDL 5.x)?
>>
>> IDL 5.4 has some new keywords for producing a PostScript preview
>> image: PRE_XSIZE, PRE_YSIZE, PRE_DEPTH. These are suppose to
>> allow you to create a preview, or thumbnail, image of a particular
>> size.
>
>> I think I'm going to stick to the tried and true way of
>> adding preview images in GhostView. :-(
>
> David, is this a Windows GhostView feature? I don't see any options like
> this in the *nix versions. This is what you use to put postscript into
> Powerpoint and the like presentations, isn't it? I've heard that in
> powerpoint, you can't see a preview of the postcript plot while you are
> constructing the presentation, and can only see it during full display.

The epstool utility (which is part of GSview) converts PostScript files
to EPS format an optionally allows a TIFF preview to be added:

http://www.cs.wisc.edu/~ghost/gsview/index.htm

For example:

% epstool -b -t6p -oplot.eps plot.ps

Note that plot.ps would be created in IDL as a PostScript file in
Portrait orientation, *not* an EPS file.

The TIFF preview added by epstool is displayed onscreen when the
PostScript file is imported into applications such as Powerpoint or
Word. However the PostScript version is rendered when the document is
printed on a PostScript printer.

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
Re: thumbnails [message #24003 is a reply to message #24002] Thu, 01 March 2001 11:14 Go to previous message
dirk is currently offline  dirk
Messages: 15
Registered: March 1998
Junior Member
In article <MPG.150845c01328cd21989d75@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:
> steve (nobody@nowhere.com) writes:
>
>> Does anyone know how to produce *.eps files with thumbnails (in IDL 5.x)?
>
> IDL 5.4 has some new keywords for producing a PostScript preview
> image: PRE_XSIZE, PRE_YSIZE, PRE_DEPTH. These are suppose to
> allow you to create a preview, or thumbnail, image of a particular
> size.

> I think I'm going to stick to the tried and true way of
> adding preview images in GhostView. :-(

David, is this a Windows GhostView feature? I don't see any options like
this in the *nix versions. This is what you use to put postscript into
Powerpoint and the like presentations, isn't it? I've heard that in
powerpoint, you can't see a preview of the postcript plot while you are
constructing the presentation, and can only see it during full display.

Anyone have tricks to get the two to programs to work better together?
(Thinking about thesis/job talks for next year... *sigh*)

Thanks, Dirk
Re: thumbnails [message #24004 is a reply to message #24003] Thu, 01 March 2001 11:16 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:
>
> steve (nobody@nowhere.com) writes:
>
>> Does anyone know how to produce *.eps files with thumbnails (in IDL 5.x)?
>
> IDL 5.4 has some new keywords for producing a PostScript preview
> image: PRE_XSIZE, PRE_YSIZE, PRE_DEPTH. These are suppose to
> allow you to create a preview, or thumbnail, image of a particular
> size.
>
> I just tried it with a screen snapshot:
>
> snapshot = TVRD(True=1)
> Set_Plot, 'PS'
> Device, /Encapsulate, /Preview, Pre_XSize=100, Pre_YSize=100, $
> Pre_Depth=8, Color=1
> TV, snapshot, True=1
> Device, /Close_File
>
> IDL went away for 5-6 several seconds while the file was written.
> But the resulting file was over 17 MBytes in size!
>
> I think I'm going to stick to the tried and true way of
> adding preview images in GhostView. :-(


Oh David,

why would you like to have a preview of about 100cm x 100cm.
I believe the units are cm or am I wrong?



cheers
Reimar

--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
Re: thumbnails [message #24005 is a reply to message #24003] Thu, 01 March 2001 10:41 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
steve (nobody@nowhere.com) writes:

> Does anyone know how to produce *.eps files with thumbnails (in IDL 5.x)?

IDL 5.4 has some new keywords for producing a PostScript preview
image: PRE_XSIZE, PRE_YSIZE, PRE_DEPTH. These are suppose to
allow you to create a preview, or thumbnail, image of a particular
size.

I just tried it with a screen snapshot:

snapshot = TVRD(True=1)
Set_Plot, 'PS'
Device, /Encapsulate, /Preview, Pre_XSize=100, Pre_YSize=100, $
Pre_Depth=8, Color=1
TV, snapshot, True=1
Device, /Close_File

IDL went away for 5-6 several seconds while the file was written.
But the resulting file was over 17 MBytes in size!

I think I'm going to stick to the tried and true way of
adding preview images in GhostView. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idl5.4 and win2k
Next Topic: Printing Woes

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

Current Time: Wed Oct 08 19:05:46 PDT 2025

Total time taken to generate the page: 0.00677 seconds