Getting one layer of a layered tiff file

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
tibberous

Getting one layer of a layered tiff file

Post by tibberous »

I have a tiff file with 3 layers. I want to get just the second one. Is this possible?

Are there any other image formats that support layers that I might have better luck with?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Getting one layer of a layered tiff file

Post by anthony »

To your read add a '[1]'

See Reading images, Read Modifiers.
http://www.imagemagick.org/Usage/files/#read_mods

or use delete to delete image 0 and all images afetr that one.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply