Bug 396454 - Frames display atop each other when rendering animation as transparent .gif
Summary: Frames display atop each other when rendering animation as transparent .gif
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Eoin O'Neill
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-12 21:27 UTC by William Ethridge
Modified: 2021-05-10 11:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
a .kra file-replicates the issue I am having, .gifs of expected and actual results from rendering animation (32.20 KB, application/x-zip-compressed)
2018-07-12 21:27 UTC, William Ethridge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Ethridge 2018-07-12 21:27:28 UTC
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**
Comment 1 Halla Rempt 2018-10-09 13:27:12 UTC
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.
Comment 2 Tiar 2020-04-07 13:39:45 UTC
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.
Comment 3 Dmitry Kazakov 2021-05-10 11:56:55 UTC
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