This forum has been archived. All content is frozen. Please use KDE Discuss instead.

krita .gif output has a poor palette

Tags: None
(comma "," separated)
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
I was surprised to get a very poor exported .gif image from krita as follows:

This is the .png output from krita of some colour patches. There are 12 unique colours in the image: https://i.imgur.com/ibmIaPw.png

The .gif output should be a very good one since there are only 12 colours in the image. It is not good: https://i.imgur.com/Y1wbOUV.gif

Just to check, I opened the .png file with GIMP and exported as a .gif: https://i.imgur.com/kD2slI0.gif

Is something going wrong with the krita .gif export?

P.S. This is with krita 4.1.1 on Debian 9 and the 4.2.0 pre-alpha build has the same problem.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS
We don't have specialised gif code, so it is probably a bug in the qt code for gif.
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Thank you for the rapid reply and explanation. The GIMP workaround is easy to do :)

I don't have this palette problem with rendering animations as animated .gifs and that is because krita outputs the intermediate frame sequence as .png files then lets ffmpeg do the .gif palette formation and rendering.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Btw, I recently learned that many websites, when one uploads an animated gif, turn it into an mpeg file, and when uploading a still gif, into a jpeg image.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]