GdkPixbufLoader fails to load CR2 image files when libopenraw is installed
I have seen in several closed issues that gdk-pixbuf does not offer "real support" for RAW image files. However, I find the following behavior rather strange.
I'm on Arch Linux, but I don't think this is specific to that distribution.
If libopenraw is not installed, gdk_pixbuf_get_formats()
does not list RAW formats as supported, but the "default" loader obtained via gdk_pixbuf_loader_new()
is able to load at least some CR2 images, including these:
- https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1778695/+attachment/5156720/+files/IMG_1543.CR2
- https://filesamples.com/samples/image/cr2/sample1.cr2
If libopenraw is installed, gdk_pixbuf_get_formats()
lists the RAW formats as supported, but the "specific" loader obtained via gdk_pixbuf_loader_new_with_mime_type()
is not able to load the above images. In the first case, the message "Decompression error" is displayed in the console output. In the second case there is no message, but in both cases the supplied pixbuf is not displayable.
One would rather expect the opposite, or at least that installing a library dedicated to an image type would not decrease the ability of gdk-pixbuf to load these images.
A practical consequence of this is that currently, on Arch Linux, EoG displays the above images correctly if libopenraw is not installed, but fails to display them if libopenraw is installed. The same goes for Ristretto, the Xfce image viewer.