When I create a layered image in ImageMagick the result PNG has a Layer 0 instead of a being on a Canvas Background. I've used flatten image function but it drags it down to Layer 0 which I believe is a combination of all the flattened images.
How can I flatten this down to Background Canvas?
How to Flatten ImageMagick image from layer 0 to Canvas?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to Flatten ImageMagick image from layer 0 to Canvas?
Flatten creates a background canvas by clonin the first (0 index) image. The color is the current background color of the first image. Each image is then composed onto that canvas using the current per-image compose setting in sequence.
I do not know what you mean by a difference between background and 0 index image in PNG. PNG images as far as I understand is just a single image, though it may have a layer offset, and/or a IM specific canvas size information profile.
I do not know what you mean by a difference between background and 0 index image in PNG. PNG images as far as I understand is just a single image, though it may have a layer offset, and/or a IM specific canvas size information profile.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/