GNOME Bugzilla – Bug 771961
Handle Sony's ARW, and don't let RAW files be detected as TIFFs
Last modified: 2017-02-04 17:13:56 UTC
Gnome Photos crashes at each ARW file it encounters. I've uploaded one to http://in.terlu.de/~kreckel/_DSC5723.ARW (since it exceeds the file size limit for uploads).
Thanks for the test image. This is something that we need to fix in GEGL's image loaders.
This version crashes on launch for me on a macbook running Apricity linux. Core dump is produced...let me know if you want it.
Launching from terminal produces: illegal hardware instruction (core dumped) gnome-photos
(In reply to Phil Reilly from comment #2) > This version crashes on launch for me on a macbook running Apricity linux. > Core dump is produced...let me know if you want it. (In reply to Phil Reilly from comment #3) > Launching from terminal produces: > > illegal hardware instruction (core dumped) gnome-photos That's something else. I think it is a bug 771995. Could you please test the patches and leave a comment on that bug?
Is there a build package to download or do I have to build one?
There are two things here. First, we need to add the MIME type and extension of Sony's ARW files to GEGL's RAW loader. Second, the content type guessing implemented in commit 442f6832701c4fba slightly changes the GEGL loader selection in a way such that some RAW images are detected as TIFFs. For example Sony ARWs and Canon CR2s.
Created attachment 344816 [details] [review] operations/external/raw-load: Handle Sony's ARW files
Created attachment 344817 [details] [review] operations/core/load: Detect local ARWs and CR2s as RAW, not TIFF
Created attachment 344818 [details] [review] operations/core/load: Be more careful about NULL values
Pushed to master after pippin's blessing at WilberWeek.