Bug 390614

Summary: Image Saved-As a .gif has zero size .gif file produced with krita-4.0.0-beta1.1-x86_64.appimage
Product: [Applications] krita Reporter: Ahab Greybeard <ahab.greybeard>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.0.0-beta.1   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ahab Greybeard 2018-02-17 15:41:55 UTC
I've just tried krita-4.0.0-beta1.1-x86_64.appimage running on Debian 9 and I scribbled something in a layer and tried to save as a .gif file.

It gave me a warning that the image would be flattened before saving, which I acknowledged of course, and then it seemed to save it. However, the saved .gif file was zero bytes in size.
Comment 1 Halla Rempt 2018-02-20 09:49:07 UTC
Git commit a4cef6af0d8cb6ff0920227fd578933d1e878652 by Boudewijn Rempt.
Committed on 20/02/2018 at 09:48.
Pushed by rempt into branch 'master'.

Add saving and loading of GIF files

This re-uses Shawn Rutledge's gif qimageio plugin
(https://github.com/ec1oud/qt-gif-plugin) and adds an optional dependency
on giflib.

In the future, we could extend this to save layers as frames
and stuff like that, but for now, it simply saves the projection.

M  +2    -0    3rdparty/CMakeLists.txt
A  +26   -0    3rdparty/ext_giflib/CMakeLists.txt
A  +706  -0    3rdparty/ext_giflib/giflib-5.0.5-20130916.diff
M  +7    -0    CMakeLists.txt
M  +4    -1    plugins/impex/CMakeLists.txt
A  +26   -0    plugins/impex/gif/CMakeLists.txt
A  +76   -0    plugins/impex/gif/kis_gif_export.cpp     [License: GPL (v2+)]
A  +38   -0    plugins/impex/gif/kis_gif_export.h     [License: GPL (v2+)]
A  +84   -0    plugins/impex/gif/kis_gif_import.cpp     [License: GPL (v2+)]
A  +37   -0    plugins/impex/gif/kis_gif_import.h     [License: GPL (v2+)]
A  +71   -0    plugins/impex/gif/krita_gif.desktop
A  +13   -0    plugins/impex/gif/krita_gif_export.json
A  +13   -0    plugins/impex/gif/krita_gif_import.json
A  +364  -0    plugins/impex/gif/qgiflibhandler.cpp     [License: GPL (v2+)]
A  +42   -0    plugins/impex/gif/qgiflibhandler.h     [License: GPL (v2+)]

https://commits.kde.org/krita/a4cef6af0d8cb6ff0920227fd578933d1e878652