When you want to convert a png or a jpg as a single image to gif, it creates a garbled image. Here is a link to test images and a .kra https://mega.nz/#F!UQRkRAyD!44LNVoMwoP7EuqY3D4Ybcg
STEPS TO REPRODUCE
1. Open the linked .kra in krita
2. Save it as a gif
Krita creates a garbled image, similar to what is seen in the link
A normal still image in gif format
Version: krita 4.2.0-pre-alpha
Can reproduce with the nightly builds.
Git commit 4443c7065791754067fcda13d3c4db5d01e19c79 by Dmitry Kazakov.
Committed on 23/04/2019 at 17:18.
Pushed by dkazakov into branch 'master'.
Fix line length in GIF export
We cannot use QImage::bytesPerLine() for line length calculation
because it usually includes alignment bytes, which are not
recognized by giflib (obviously!).
M +6 -1 plugins/impex/gif/qgiflibhandler.cpp