Created attachment 113909 [details] a .kra file-replicates the issue I am having, .gifs of expected and actual results from rendering animation Overview: I made a small animation of a few frames in Krita. When I go to file>Render Animation and save it as a .gif file, the resulting .gif plays each frame on top of the previous, so by the 3rd or 4th frame its a mess of images layered on top of each other Steps to Reproduce: make a small animation or try the .kra file attached, render as a .gif Actual Results: see Actual Results.gif Expected Results: see Expected Results.gif (I was able to make the .gif as intended using a tool outside of Krita) Build Date & Platform: Krita Version: 4.1.0 OS Information Build ABI: x86_64-little_endian-llp64 Build CPU: x86_64 CPU: x86_64 Kernel Type: winnt Kernel Version: 10.0.17134 Pretty Productname: Windows 10 (10.0) Product Type: windows Product Version: 10 OpenGL Info **OpenGL not initialized**
Hi William, I'm sorry, but currently Krita doesn't support create transparent gifs. We'd need to change the way we call ffmpeg to support that.
When implementing, make sure that the way ffmpeg is called out fits the ffmpeg version available on the lowest supported version of Ubuntu (in time of writing, it's supposed to be Ubuntu >= 18.04). I did try to implement this but I haven't got much success, and I had a problem with getting it to work because if I used an option that the ffmpeg didn't support yet, it would complain. So if someone comes up with a proper way of making those gifs, it needs to still work for at least standard gifs on older ffmpegs.
Git commit e4554535b25e63958969465cc4ca192c47716715 by Dmitry Kazakov, on behalf of Know Zero. Committed on 10/05/2021 at 11:56. Pushed by dkazakov into branch 'master'. New option and minor fixes for animated GIF export This patch includes the following: * Option to toggle reserving a color for GIF transparency * Warn about transparency not working if user has an old FFMpeg version and trying to export a GIF * Cleanup the palette files after rendering is done * Fixed an error with exporting in single palette per frame option * Displays the FFMpeg version user selects M +9 -2 libs/ui/animation/KisAnimationRender.cpp M +33 -11 libs/ui/animation/KisDlgAnimationRenderer.cpp M +3 -0 libs/ui/animation/KisDlgAnimationRenderer.h M +1 -1 libs/ui/animation/KisVideoSaver.cpp M +4 -1 libs/ui/animation/VideoExportOptionsDialog.cpp M +10 -0 libs/ui/animation/video_export_options_dialog.ui M +18 -1 libs/ui/animation/wdg_animationrenderer.ui https://invent.kde.org/graphics/krita/commit/e4554535b25e63958969465cc4ca192c47716715