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

Home » Public Forums » archive » Re: jpegs and tiffs
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: jpegs and tiffs [message #57789] Thu, 27 December 2007 13:08
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Josh writes:

> This makes sense -- unfortunately neither solution worked. I tried
> both
> quality=100 and RED='0000FF'XL (as well as both at the same time) and
> I always
> get two apparently black lines in the jpeg, but a colored line in the
> tiff.
> When I try LTGRAY='CCCCCC'XL, the jpeg does show the line as being
> light
> gray. It seems that the jpeg understands grayscale.

Humm. Sure you are using a 24-bit display? What does
HELP, /DEVICE tell you? What application are you using
to view your JPEG files?

Color! Scheesh!

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: jpegs and tiffs [message #57792 is a reply to message #57789] Thu, 27 December 2007 13:00 Go to previous message
Josh is currently offline  Josh
Messages: 21
Registered: June 2007
Junior Member
> Well, I don't think there are *really* two black sine
> waves in the JPEG file. I think one of them is very dark
> blue and the other is black. But, you are right, it is
> not as blue as it is in the TIFF file. I think this is
> probably because of the "lossy" nature of JPEG files.
> I would try setting the QUALITY keyword on the WRITE_JPEG
> command to 100 and see if that doesn't help some.
>
> In any case, if you choose a RED color, you will see that
> you are getting differences in your two lines. :-)

This makes sense -- unfortunately neither solution worked. I tried
both
quality=100 and RED='0000FF'XL (as well as both at the same time) and
I always
get two apparently black lines in the jpeg, but a colored line in the
tiff.
When I try LTGRAY='CCCCCC'XL, the jpeg does show the line as being
light
gray. It seems that the jpeg understands grayscale.

J
Re: jpegs and tiffs [message #57819 is a reply to message #57792] Mon, 24 December 2007 18:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Josh writes:

> The following program is supposed to write two sine waves, a blue one
> and a black one, to two different files. However, on my system, the
> jpeg ends up with two black sine waves, whereas the tiff (as well as
> the window on the screen) end up with a blue one and a black one as
> desired. Any thoughts? Code is taken from Gumley, but with many
> changes.

Well, I don't think there are *really* two black sine
waves in the JPEG file. I think one of them is very dark
blue and the other is black. But, you are right, it is
not as blue as it is in the TIFF file. I think this is
probably because of the "lossy" nature of JPEG files.
I would try setting the QUALITY keyword on the WRITE_JPEG
command to 100 and see if that doesn't help some.

In any case, if you choose a RED color, you will see that
you are getting differences in your two lines. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to change the menu langauge for IDL v7.0?
Next Topic: Re: Where is the CVS plugin for the workbench?

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

Current Time: Thu Oct 09 06:48:58 PDT 2025

Total time taken to generate the page: 0.31900 seconds