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

Home » Public Forums » archive » multi-layer tiff file
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
multi-layer tiff file [message #88934] Sat, 05 July 2014 05:08 Go to next message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Anyone know a way to generate a multi-layer tiff from IDL (or any other format which would open in photoshop with images in separate layers)? I tried this:

IDL> a=dist(400)
IDL> b=bytscl(findgen(400,400))
IDL> c=[[[a]],[[b]]]
IDL> write_tiff,"d:\tmp\test.tif",c,planarconfig=2

but Photoshop doesn't like it (although Photoshop can read/write multi-layer tiffs). I'm hoping to create a ~100 layer image file.

cheers,
Greg
Re: multi-layer tiff file [message #88935 is a reply to message #88934] Sat, 05 July 2014 05:10 Go to previous messageGo to next message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
...I meant

a=bytscl(dist(400))
Re: multi-layer tiff file [message #88937 is a reply to message #88935] Sun, 06 July 2014 16:54 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
Hi Greg,

I don't use Photoshop. Therefore I don't know, how Photoshop creates
and reads "multi-layer TIFFs". You may try to create a multi-image
TIFF file in the following way:

a=bytscl(dist(400))
b=bytscl(findgen(400,400))
write_tiff,"test.tif",a
write_tiff,"test.tif",b,/append

I don't know, if this works.

Cheers, Heinz
Re: multi-layer tiff file [message #88942 is a reply to message #88937] Mon, 07 July 2014 01:39 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Hi Heinz,

Thanks for the idea. Unfortunately, in this case Photoshop doesn't see the second image at all. I think I'll have to give up on that plan.

cheers,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem in band operations.
Next Topic: Delete element from the structure inside another structure

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

Current Time: Wed Oct 08 13:40:06 PDT 2025

Total time taken to generate the page: 0.00459 seconds