Bug 401371 - Greyscale DNG files report wrong size in browse view
Summary: Greyscale DNG files report wrong size in browse view
Status: RESOLVED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 18.08.3
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-24 18:12 UTC by james tappin
Modified: 2025-08-19 16:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Example DNG file (2.07 MB, image/x-adobe-dng)
2019-01-17 17:22 UTC, james tappin
Details
Screen shot of error. (45.20 KB, image/png)
2019-01-18 08:20 UTC, james tappin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description james tappin 2018-11-24 18:12:51 UTC
SUMMARY
When a directory contains a 16-bit greyscale DNG file (from VueScan), the dimensions displayed are twice the correct values.

STEPS TO REPRODUCE
1. Open a directory containing 16-bit greyscale DNG files in browse mode

OBSERVED RESULT
The size displayed below the filename is twice the correct value.

EXPECTED RESULT
Display the correct value.

SOFTWARE/OS VERSIONS
See about section.

ADDITIONAL INFORMATION
Not sure about colour DNGs or 8-bit ones as I don't have any.
Comment 1 Christoph Feck 2018-12-20 00:40:46 UTC
Could you attach a small example DNG file which demonstrates the issue? I guess DNG is handled by our loader for camera RAW formats, KF5::KDcraw.
Comment 2 Christoph Feck 2019-01-17 03:59:11 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 james tappin 2019-01-17 17:22:26 UTC
Created attachment 117515 [details]
Example DNG file

Here is an example. Gwenview browse mode reports it as 2606x1640, while the image  viewer reports (correctly) 1304x820, which is also reported in browse mode for the JPEG.

Sorry for the delay, most of my scans are FAR to big to upload (70-150Mb).
Comment 4 Christoph Feck 2019-01-17 21:18:29 UTC
Image is 1303x820x2 + 217x136x1 for thumbnail. Interestingly, on my system, Gwenview's information sidebar, as well as Gwenview's image viewer, only report and show the 217x136x1 thumbnail.

It looks like Qt's TIFF loader is used for loading, because when I uninstall libqt5-qimageformats, it won't load it.
Comment 5 james tappin 2019-01-18 08:20:15 UTC
Created attachment 117529 [details]
Screen shot of error.

It's only in browse view that there's an issue, see the attached screenshot of the Thumbnail & size info for the DNG and the corresponding Jpeg.
Comment 6 A Linux User 2025-08-19 16:03:30 UTC
This seems to be fixed by now, both in Browse and in View Mode, the correct dimensions are shown. If not, please reopen.