01-15-2023, 12:15 AM
Clever (t)rickk.
However, what you get isn't the background BG added to each layer L1 .. Ln: BG+L1, BG+L2, .. BG+Ln. What you get is the background added to a progressive accumulation of layers: BG+L1, BG+L1+L2, .. , BG+L1+L2+..+Ln. This can be fine if you just use the result as an animation (but then if you don't do this you already have the optimized result...).
In addition, it seems to lose the anti-aliasing, even though the layers are not color-indexed. Not a problem if you export to GIF (you will lose it anyway) but nasty if you export to animated WebP.
However, what you get isn't the background BG added to each layer L1 .. Ln: BG+L1, BG+L2, .. BG+Ln. What you get is the background added to a progressive accumulation of layers: BG+L1, BG+L1+L2, .. , BG+L1+L2+..+Ln. This can be fine if you just use the result as an animation (but then if you don't do this you already have the optimized result...).
In addition, it seems to lose the anti-aliasing, even though the layers are not color-indexed. Not a problem if you export to GIF (you will lose it anyway) but nasty if you export to animated WebP.