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.wa****ngton.edu/~towler/programs/make_imageFunction.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


|