Bug 423431 - No thumbnails in low resource mode for Canon PowerShot A700 photos
Summary: No thumbnails in low resource mode for Canon PowerShot A700 photos
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 22.08.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
: 428013 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-24 10:08 UTC by bug2019@fantasymail.de
Modified: 2023-03-14 11:47 UTC (History)
2 users (show)

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


Attachments
Sample image take with Canon PowerShot A700 (2.08 MB, image/jpeg)
2020-06-24 10:08 UTC, bug2019@fantasymail.de
Details
Gwenview showing a unicolor thumbnail (86.09 KB, image/png)
2020-06-24 10:09 UTC, bug2019@fantasymail.de
Details
Personal fix for this bug (1.10 KB, patch)
2021-01-17 07:52 UTC, bug2019@fantasymail.de
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bug2019@fantasymail.de 2020-06-24 10:08:54 UTC
Created attachment 129630 [details]
Sample image take with Canon PowerShot A700

Gwenview does not show thumbnails for Canon PowerShot A700 photos when in low resource mode (see Screenshot and sample image).
Maybe the problem is an invalid exif thumbnail size (exiftool prints "Thumbnail Image Valid Area: 0 0 0 0" for these images).

STEPS TO REPRODUCE
1. Switch gwenview to "Low resource usage mode"
2. Restart gwenview to clear thumbnail cache
3. Open gwenview in folder with sample image

OBSERVED RESULT
The thumbnail for the sample image is only unicolor.

EXPECTED RESULT
The thumbnail should be a small version of the actual photo.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04 LTS
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 bug2019@fantasymail.de 2020-06-24 10:09:26 UTC
Created attachment 129631 [details]
Gwenview showing a unicolor thumbnail
Comment 2 bug2019@fantasymail.de 2020-06-24 12:15:51 UTC
The problem seems to be in lib/jpegcontent.cpp line 581 (https://github.com/KDE/gwenview/blob/master/lib/jpegcontent.cpp#L581).
As stated here https://exiftool.org/TagNames/Canon.html, the four zeros mean 'no crop'.
If the validArea rect is created by two QPoint(0, 0) it results in a QRect(0,0 1x1).
I think this should be QRect(0,0 0x0).
Maybe this is a Qt bug?
Comment 3 bug2019@fantasymail.de 2021-01-17 07:52:30 UTC
Created attachment 134952 [details]
Personal fix for this bug

I fixed the bug for myself with this change.
Comment 4 bug2019@fantasymail.de 2022-12-11 15:19:30 UTC
Bug still exists in current Kubuntu 22.10 installation running Gwenview 22.08.2.
Comment 5 Andy 2023-03-14 11:44:46 UTC
*** Bug 428013 has been marked as a duplicate of this bug. ***
Comment 6 Andy 2023-03-14 11:47:44 UTC
Problem also occurs with a Canon Ixus 255 camera.  An example image file from that camera is attached to this duplicate bug report:
https://bugs.kde.org/show_bug.cgi?id=428013