avianbc / NGif

.NET advanced GIF library
https://bradleycarey.com/posts/2012-07-23-ngif-c-library-with-assorted-bugfixes/
20 stars 9 forks source link

Strange Behavior #1

Open grene78 opened 6 years ago

grene78 commented 6 years ago

oddness.zip test

I'm creating a scroll effect by drawing multiple frames offset by X. The frames are generated in memory, but to illustrate the issue I have exported them to .gif files. Using the example code to combine the gif files into test.gif you can see the resultant animation has some coloring artifacts/blinking.

I figure this has to be the result of the compression, and something with the color tables? Any ideas?

sengiv commented 1 year ago

For the black background, I suspect is caused by transparency conversion. Convert all your PNGs transparent to white background first. Then when converted to GIF they will become white and not auto convert to black. Worked for me, hopefully works for others.