Bad results when saving an anim to GIF

Report any Hollywood bugs here

Bad results when saving an anim to GIF

Postby jPV » Fri Mar 10, 2017 3:36 pm

I've been trying to save anims to gifs, but seem to get some garbage to the saved gif anims often. I tried to play with different options (dither, colors, optimize, transparency), but seems that I can't find anything which would make a difference. I'm starting to think that maybe gif saving is buggy somehow?

For example:
Code: Select all
SaveAnim(1,"ram:test.gif", #ANMFMT_GIF)

Will result images like this...
Image after loading the original animation:

And image after saving and reloading the new gif anim:

In this example most of the frames look good, but then there are few in the middle with some leftovers and other glitches which don't belong to the image.

Same happens with SaveAnim and WriteAnimFrame.... and saving to for example APNG doesn't result similar garbage.
User avatar
Posts: 120
Joined: Sat Mar 26, 2016 11:44 am
Location: RNO

Re: Bad results when saving an anim to GIF

Postby airsoftsoftwair » Sat Mar 11, 2017 3:33 pm

Yes, clearly a bug. This bug was introduced in Hollywood 6.0 when I implemented the following fix:

Code: Select all
- Fix: Exact precision for color quantization on images that use colors that can be represented in 8bit or
  less, for example when using the #IMGFMT_GIF saver

It's fixed now. Thanks for reporting!
User avatar
Posts: 2415
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Return to Hollywood bugs

Who is online

Users browsing this forum: No registered users and 2 guests