DNG images show as thumbnails, not the real image.
Submitted by Adam Buchbinder
Link to original bug (#577499)
Description
Please describe the problem: The embedded thumbnails, rather than the real images, in DNG files are displayed in apps that use gdk-pixbuf. I believe this is because it's being recognized as a TIFF image.
Steps to reproduce:
- Go to www.rawsamples.ch and download the DNG sample for a Leica M8. (It's 10MB, so I'm not attaching it here.)
- Open it with gthumb.
Actual results: The image displayed is 320x240.
Expected results: The full, 3920x2638, image should be displayed.
Does this happen every time? Yes; this is reproducible. The issue appears in gthumb, eog, and f-spot. I believe the problem is in gdk-pixbuf, since all three apps use it.
Other information: Decoding the image to a TIFF with dcraw allows me to view it properly; the image does not appear to have anything wrong with it.
$ dcraw -i -v RAW_LEICA_M8.DNG |grep size Thumb size: 320 x 240 Full size: 3920 x 2638 Image size: 3920 x 2638 Output size: 3920 x 2638
If the image is read as a TIFF, the thumbnail size is read:
$ tiffinfo RAW_LEICA_M8.DNG 2>/dev/null|grep Width Image Width: 320 Image Length: 240
gdk-pixbuf is displaying what we'd get if we tried to load the DNG as a TIFF.
$ tifftopnm RAW_LEICA_M8.DNG 2>/dev/null | head -2 | tail -1 320 240
This was originally reported on the Ubuntu bugtracker:
https://bugs.launchpad.net/ubuntu/+source/gdk-pixbuf/+bug/333388
Version: git master