libopenraw pixbuf loader fails to load CR2 image files
On Arch Linux, when the libopenraw
package is installed (which embeds libopenraw_pixbuf.so
), the gdk-pixbuf function gdk_pixbuf_loader_new_with_mime_type()
fails to load at least these CR2 image files:
- https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1778695/+attachment/5156720/+files/IMG_1543.CR2
- https://filesamples.com/samples/image/cr2/sample1.cr2
- https://gitlab.freedesktop.org/libopenraw/libopenraw/uploads/dd063309426621784220d376d3773488/IMG_0100.CR2
For the first image, the message "Decompression error" is displayed in the console output. For the others there is no message, but the supplied pixbuf is not displayable.
On some distributions like Ubuntu or Debian, the packaging of libopenraw doesn't embed libopenraw_pixbuf.so
. This causes image viewers using gdk-pixbuf (like Eye of GNOME or Ristretto) to use the generic loader gdk_pixbuf_loader_new()
, which displays the low quality image embedded in the CR2 file, giving the impression that it works. On Arch Linux, you have to uninstall libopenraw
or rename libopenraw_pixbuf.so
to get the same result.
See also