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

Home » Public Forums » archive » Re: JPEG image dimensions
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: JPEG image dimensions [message #55996] Wed, 26 September 2007 09:33
Rob.Dimeo is currently offline  Rob.Dimeo
Messages: 21
Registered: September 2007
Junior Member
On Sep 26, 12:29 pm, David Fanning <n...@dfanning.com> wrote:
> Rob.Di...@gmail.com writes:
>> This seems like a simple task that I should know how to do but it's
>> giving me some trouble.
>
>> I have a JPEG file that has the following dimensions: (4,179,90)
>> I'm having difficulties viewing this with TV and David's TVIMAGE.
>
>> IDL> read_jpeg,file,img,/true
>> IDL> help,img
>
>> IMG BYTE = Array[4, 179, 90]
>
>> Any suggestions?
>
> It sounds like that could be a 24-bit image with an alpha
> channel. Here is an article that describes how to display
> such an image in IDL:
>
> http://www.dfanning.com/ip_tips/transparentpng.html
>
> 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.")

Thanks David!
Re: JPEG image dimensions [message #55997 is a reply to message #55996] Wed, 26 September 2007 09:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob.Dimeo@gmail.com writes:

> This seems like a simple task that I should know how to do but it's
> giving me some trouble.
>
> I have a JPEG file that has the following dimensions: (4,179,90)
> I'm having difficulties viewing this with TV and David's TVIMAGE.
>
> IDL> read_jpeg,file,img,/true
> IDL> help,img
>
> IMG BYTE = Array[4, 179, 90]
>
> Any suggestions?

It sounds like that could be a 24-bit image with an alpha
channel. Here is an article that describes how to display
such an image in IDL:

http://www.dfanning.com/ip_tips/transparentpng.html

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: JPEG image dimensions
Next Topic: Re: create geotiff

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

Current Time: Fri Oct 10 20:37:44 PDT 2025

Total time taken to generate the page: 0.08308 seconds