Forum Moderators: coopster & phranque

Message Too Old, No Replies

Detecting layered images with imagemagick

or other linux app

         

martin

2:07 pm on Oct 25, 2005 (gmt 0)

10+ Year Member



Hi,

any ideas if I can detect if an image has layers or not using perlmagick? The docs don't mention anything about it in the perl API or cli tools. I also asked on the imagemagick-users list but haven't got a reply yet.

Any other software that I can use instead to find out if a given image has layers? Something with a perl API is preferred but a CLI one would do fine too.

KevinADC

7:26 pm on Oct 25, 2005 (gmt 0)

10+ Year Member



do you mean server side software to check if an image has layers? Do you mean layers like Adobe or Corel might have in their native formats or something else? Can images for the internet have layers?

rainborick

12:06 am on Oct 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I didn't think ImageMagick would help you at all with layers because the work I did with it earlier this year always seemed to show it only dealt with simple bitmaps regardless of the file format. But since I'm a real casual user I didn't want to post until I'd done a little checking. I only looked for a short time, but I found a reference to layers that looks promising.

Google the single word "pingimage" (which is an IM method I wasn't aware of before), and about the fourth entry down is a page from #*$!.uni-heidelburg.de with the words "Image Magic Methods" in the title. Its a nice IM reference page that I hadn't seen before. Under the L's I spotted the function "LayerImage". I bet if you start there you'll find some help. Good luck!

martin

5:33 pm on Nov 2, 2005 (gmt 0)

10+ Year Member



What I'm accepting is a TIFF image upload, it doesn't have to have layers though and I don't know how to check that.

Thanks for the LayerImage reference but I don't know C, I'm looking for a perl API or a cli tool.

If anyone has other suggestions please let me know as a last resort I might check if using the C interface to build a simple app would work.