GNOME Bugzilla – Bug 334538
better handling of gif animations
Last modified: 2010-07-10 04:08:38 UTC
with the advent of byzanz, people start to have big gif animations lying around, and the nautilus thumbnailer happily thumbnails them using gdk_pixbuf_new_from_file(). Unfortunately, the load_image method of the gif loader is rather dumb: it loads the entire animation, then takes the first frame of it. Here is a patch to stop the loading after the first frame if we know that we are only after a static image.
Created attachment 61228 [details] [review] patch
2006-03-14 Matthias Clasen <mclasen@redhat.com> * io-gif.c (gdk_pixbuf__gif_image_load): Add a shortcut to stop the gif mainloop after the first frame, if that is all we are interested in. (#334538)