Page 1 of 1
How to Flatten ImageMagick image from layer 0 to Canvas?
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?
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.