Certain gifs have strange negative flashes?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
KasProduct
Posts: 1
Joined: 2016-04-08T06:28:47-07:00
Authentication code: 1151

Certain gifs have strange negative flashes?

Post by KasProduct »

I'm using a piece of forum software (Lithium), and its image encoding is backed by ImageMagick although I cannot directly see or access its configuration and parameters. I'm hoping someone here can help me work out what's causing this strange issue so I can push the devs to fix it.

Here's one of the images used as an avatar. It is a 17-frame 8-colour GIF of a ball rotating, with a little glint/sparkle on the 16th frame.

Image

The software encodes each image uploaded, and this is what comes out.

Image

The issue isn't actually on the glint/sparkle frame. It's on the succeeding frame, the final one.

Does anyone know what would cause an issue like this?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Certain gifs have strange negative flashes?

Post by snibgo »

There are 17 frames. Numbering them from 1, number 16 has the glint.

The first GIF you show is good. It is uncoalesced (ie compressed; each frame stores just differences).

The second GIF you show has a bad final frame. It is the same as the final uncoalesced frame from the first GIF. It seems only the first 16 frames were coalesced. I don't know what might cause that.

It seems the software did something like this:

Code: Select all

convert AzYvT8a.gif -layers coalesce a.gif
... but something went wrong.

Can you ask what version of IM they used? If they used a command-line, what was it?
snibgo's IM pages: im.snibgo.com
Post Reply