https://bugs.kde.org/show_bug.cgi?id=407275

--- Comment #4 from vanyossi <ghe...@gmail.com> ---
Created attachment 119906
  --> https://bugs.kde.org/attachment.cgi?id=119906&action=edit
Gif animation rendered with ffmpeg


Sadly this is a limitiation on gif, ffmpeg and krita at this moment.

GIF: does not support 8bit transparency, only 1bit, this means transparency on
or off. The image you have uses a very light transparent green which is
interpreted as off.

FFMEG: git implementation for ffmpeg is designed more on the idea of make gifs
out of movies, I thought it maybe a problem on our ffmpeg command, but no
matter what I did, working directly with ffmpeg I could not make the gif
display correctly from the pngs exported. The correct rendering for your image
would be to use a replace frame gif animation, but instead ffmpeg insists in
using cumulative, which with a transparent channel makes the previous frames
linger on. I was not able to make Dither on ffmpeg work on the transparency
channel

The closest I was able to get was using this cmd
ffmpeg -r 12 -start_number 0 -i frame%04d.png -i palette.png -vcodec gif -lavfi
[v][1:v]paletteuse=dither=bayer:bayer_scale=5 -gifflags -offsetting+transdiff
-pix_fmt rgba -y render2.gif

Krita: AFAIK vanilla krita (no GMiC) has no option to make indexed 8bit images
to dither transparency. which makes faking gradient transparency with 1bit
alpha channel quite challenging.

I attach the gif I obtained (scaled image for faster rendering)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to