But how do applications like Fireworks, Photoshop and others read this information? I guess they go by another name, chunks?
Whatever they are called, this is basically what I need. Maybe these applications infer them from other information but I can deal with that if I can know where to find them. The information they seem to have about the "layers" (or objects or whatever) seems basically to be: name, coordinates and size, color and a few others. This is pretty much all I really need. I made a screen shot from Fireworks of what I mean: http://www.strangeelement.com/PNGLayers.png. In it, Fireworks lists layers (likely a proxy for something else that they simply call layers but aren't really, information I would use if I can get it), one of which contains 4 objects with a name, likely an available coordinate, size and fill color. Thanks! Rich. On Tue, Oct 21, 2008 at 12:04 AM, Anthony Thyssen <[EMAIL PROTECTED]>wrote: > "=?ISO-8859-1?Q?Richard_Vall=E9e?=" on wrote... > | I'm trying to find a way, either from a linux command line application, > or > | through something accessible from PHP (MagickWand?) that would read a PNG > | file and return the layers information of the file. > | > | Maybe there are different ways to name so to be specific, by layers I > mean > | basically the same info I would get by opening the file with Fireworks > and > | checking the layers window. > | > | Is this something ImageMagick can do? If not is there a way, even through > | libpng? I'd rather not but if necessary I have no problem writing a small > C > | application that would do this, given I know how to proceed. > | > A PNG file does not have multiple layers. > > It does have offset information for layers but that is the extent of it. > > > Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> > > ----------------------------------------------------------------------------- > I have a Dragon here, and I am not afraid to use it! > -- Donkey, "Shrek" the movie > > ----------------------------------------------------------------------------- > Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ > _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
