Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Jpeg in a ....
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 5531 of 6261
Post > Topic >>

Re: Jpeg in a .sav file

by Rick Towler <rick.towler@[EMAIL PROTECTED] > Mar 13, 2008 at 01:16 PM

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
 




 8 Posts in Topic:
Jpeg in a .sav file
Dan Larson <dlarson@[E  2008-03-13 10:19:11 
Re: Jpeg in a .sav file
David Fanning <news@[E  2008-03-13 11:33:50 
Re: Jpeg in a .sav file
Rick Towler <rick.towl  2008-03-13 13:16:47 
Re: Jpeg in a .sav file
David Fanning <news@[E  2008-03-13 14:53:45 
Re: Jpeg in a .sav file
mmiller3@[EMAIL PROTECTED  2008-03-13 16:37:18 
Re: Jpeg in a .sav file
Dan Larson <dlarson@[E  2008-03-13 14:05:35 
Re: Jpeg in a .sav file
David Fanning <news@[E  2008-03-13 16:24:04 
Re: Jpeg in a .sav file
Rick Towler <rick.towl  2008-03-13 17:05:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 21:01:53 CDT 2008.