Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
dlemstra wrote:You have found a feature that was added last year. The first image has a resource block that contains layer information. Extracting one of the layers is possible as you have seen. But you cannot 'only' get the first image because the second image (layer) is part of the first image. You can disable this feature with the following define:
I see, that's really unfortunate. Thanks for the info, it's helped me debug further causes for this issue.
It is, however, frustrating that ImageMagick doesn't have a way strip the tags specifying the layer data, as the first image block without the tag data is how Adobe intends for the image to be read outside of the context of Photoshop (at least, according to their spec).
I tried this and wrote only layer [0] and only layer [1], but when I do identify on the saved image from layer [0], it still had two layers showing and looked like the original. The layer [1] seemed fine and identify showed only one layer.
The option means that it will not try to read them and add them to the 'list of images', it will still remain in the file though. You can remove the layers by removing the profile with the name 'tiff:37724'. The following will get you only the first image: