After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 334538 - better handling of gif animations
better handling of gif animations
Status: RESOLVED FIXED
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-03-14 14:20 UTC by Matthias Clasen
Modified: 2010-07-10 04:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.65 KB, patch)
2006-03-14 14:21 UTC, Matthias Clasen
none Details | Review

Description Matthias Clasen 2006-03-14 14:20:58 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.
Comment 1 Matthias Clasen 2006-03-14 14:21:33 UTC
Created attachment 61228 [details] [review]
patch
Comment 2 Matthias Clasen 2006-03-14 21:35:35 UTC
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)