Closed GoogleCodeExporter closed 9 years ago
On a sidenote: I tried making the gif in photoshop, and the result comes out
much better, so it's not theoretically impossible. Perhaps PIL isn't good
enough for this though...
Original comment by Nuntius.Marii@gmail.com
on 20 Oct 2010 at 6:50
Attachments:
Hi Nuntius,
This is indeed a problem inherent to GIF images. Gif only supports 256
different colors per frame, while PNG supports 24bit (1.677.7216) colors and an
alpha channel.
In response to your second message: that can be; selecting the right colors is
not a simple process and several approaches are possible. I'm not surprised
that photoshop is better at it than PIL :)
Recent improvement were made to the algorithm (of images2gif.py) such that it
selects a color table for each frame, which significantly improves results for
most image sequences, but can indeed result in inconsistent colors between
frames.
So although its widely available, gif isn't such a great standard. I'd suggest
using swf, which more or less wraps png images in a movie. It also has much
better compression that gif (zlib instead of RLE).
I'm marking this issue invalid, because it's not a bug. If you have any more
questions, please e-mail me at almar.klein at gmail dot com.
Original comment by almar.klein@gmail.com
on 20 Oct 2010 at 6:59
Original issue reported on code.google.com by
Nuntius.Marii@gmail.com
on 20 Oct 2010 at 6:27Attachments: