Animated GIF that cannot be displayed properly

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Animated GIF that cannot be displayed properly

Post by XnTriq »

LCFactorization (Stack Overflow: [url=http://www.stackoverflow.com/questions/30275102]Animated GIF that cannot be displayed properly by XnView or MS Internet Explorer[/url]) wrote:I created the following GIF by Mathematica, which can only be displayed properly by Chrome and FireFox.

Code: Select all

ClearAll["Global`*"];
glist=Table[ParametricPlot3D[{Cos[b] (6-(5/4+Sin[3 a]) Sin[a+b h]),Sin[b] (6-(5/4+Sin[3 a]) Sin[a+b h]),-Cos[a+b h] (5/4+Sin[3 a])},{a,0,2 Pi},{b,0,2 Pi},PlotPoints->40,ColorFunction->(RGBColor[#,0,1-#,4/5]&[1/2+{1,-1}.{#1,#2}/2]&),Mesh->False,Boxed->False,Axes->False,Evaluated->True,ImageSize->300,PlotRangePadding->None],{h,0,6,1/3}];
Export["testAnimation.gif", Flatten@{glist, Reverse@glist}, 
 "DisplayDurations" -> 0.5]
In XnView, the animated GIF is static with only the first frame visible; while openning in Microsoft Internet Explorer, only first 3 frames are visible.

Image

My questions are: why this happens (only properly displayed in some of the explorers) and how to avoid such issues when creating animated GIFs? Is it possible to amend the current GIF so that it is OK for all explorers?
The problem seems to be related to the local palettes of the frames.

Optimized with GIF Movie Gear (global palette):
  • Image
Post Reply