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

Home » Public Forums » archive » Re: Jpeg in a .sav file
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: Jpeg in a .sav file [message #59247 is a reply to message #59245] Thu, 13 March 2008 13:16 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Well, maybe he wants to embed an emblem or logo in a .sav file.
Something a bit more "professional" than simply distributing a separate
file. I mean, *anyone* can do that!

The trick is encoding the image into a function. Like so:

http://www.acoustics.washington.edu/~towler/programs/make_im ageFunction.pro

Like the header says, there are I'm sure a load of issues you could run
into. I've used this on a number of smaller images and it works but I
would expect this to fail with even "medium" resolution images. Also
you'll want to tweak this a bit as I was working with .png files.

Enjoy!

-Rick


David Fanning wrote:
> Dan Larson writes:
>
>> I am trying to put a jpeg into a .sav file for distribution. I know
>> that variables and routines cannot be in the same .sav file, and I
>> know this issue has been addressed over the years in this forum. BUT,
>> most of the posts I found were quite old (1996, 1998), and I was
>> wondering if newer versions of IDL have somehow corrected this problem
>> or if there is a fix of which I am not aware.
>
> You must be thinking of a zip file. What would a
> JPEG file even look like in the context of an IDL
> session? A JPEG file is something that exists on
> disk. It has nothing to do with IDL. If you read
> a JPEG file off the disk in IDL, of course, you
> have an image. You could certainly save an image
> in a save file.
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: unsigned long long and min/max operator
Next Topic: Re: WindowsXP IDLWorkbench hang issue

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

Current Time: Sat Oct 11 15:27:36 PDT 2025

Total time taken to generate the page: 2.32327 seconds