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 532644 - TIFF loader need to exclude CR2 files
TIFF loader need to exclude CR2 files
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: 2008-05-11 18:13 UTC by Hubert Figuiere (:hub)
Modified: 2010-07-10 04:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hubert Figuiere (:hub) 2008-05-11 18:13:09 UTC
The TIFF loader need to exclude CR2 files.

When it tries to open CR2 files using libtiff, it fails because it is not a TIFF compliant file.

The following signature should be added to the GdkPixbufModulePattern list in the tiff pixbuf loader:
{"II* \020   CR\002 ", "   z zzz   z", 0 }

Same problem with arise with other TIFF-like raw files, but is not as easy.

(I use that signature with a level of confidence of 100 in my libopenraw pixbuf loader)
Comment 1 Matthias Clasen 2008-08-14 05:33:10 UTC
Thanks, I've added that pattern now. Do you know if the shared-mime-info magic data gets this right ? gdk-pixbuf uses that now for sniffing, if it is available...
Comment 2 Hubert Figuiere (:hub) 2008-08-14 14:23:04 UTC
I don't think shared-mime-info has it either.