GNOME Bugzilla – Bug 583547
gdk_pixbuf_loader_get_pixbuf returns different results if gdk_pixbuf_loader_set_size has been called
Last modified: 2018-05-22 13:10:33 UTC
Values, returned by gdk_pixbuf_loader_get_pixbuf before and after call of gdk_pixbuf_loader_close, may differ. This difference contradict to the description of gdk_pixbuf_loader_get_pixbuf:
The returned pixbuf will be the same in all future calls to the loader, so simply calling g_object_ref() should be sufficient to continue using it.
This occures when gdk_pixbuf_loader_set_size has been called with sizes which different from sizes of image loaded.
Created attachment 135168 [details]
Example that demonstrates problem
Created attachment 135169 [details]
image used in example
I can reproduce this with gdk-pixbuf 2.31, and not just with the BMP loader, but with the PNG one too.
-- GitLab Migration Automatic Message --
This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/23.