Bug 500200

Summary: Problems with large images
Product: [Applications] kphotoalbum Reporter: Alex6 <alex.premie>
Component: generalAssignee: KPhotoAlbum Bugs <kphotoalbum-bugs-null>
Status: RESOLVED FIXED    
Severity: grave CC: rsquared42
Priority: NOR    
Version First Reported In: 6.0.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alex6 2025-02-16 16:45:30 UTC
SUMMARY


STEPS TO REPRODUCE
1.  Try to add a large image to the db
2.  Try to show a large existing image (.nef or tiff 16 bits; 40Mpx for example)

OBSERVED RESULT
1. No thumbnail built
2. No image showed
Get "qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes"
Tried to set QT_IMAGEIO_MAXALLOC, but without success (my coding limits?)

EXPECTED RESULT
Same behavior as before update

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Comment 1 Randall Rude 2025-10-11 16:47:38 UTC
I downloaded this 256MB tiff image and copied it into the demo database folder:
https://web.corral.tacc.utexas.edu/ceersdata/press-releases/HighResolution/CEERS-NIRCAM-credit-220804.tif

KPhotoAlbum (current git master) reported the error Alex6 mentioned and failed to both generate a thumbnail and load the image.

Workaround:
* exit kphotoalbum
* override this environment variable (in this case doubling the Qt limit):
export QT_IMAGEIO_MAXALLOC=`expr 512 \* 1024 \* 1024`
* restart kphotoalbum
* select Maintenance/Build Thumbnails

With the workaround, the thumbnail was generated and the image was displayed.

KPhotoAlbum v5.12.0 is able to handle this file without needing the workaround.
Comment 2 Bug Janitor Service 2025-10-12 17:01:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/kphotoalbum/-/merge_requests/48
Comment 3 Johannes Zarl-Zierl 2025-10-12 20:07:09 UTC
Git commit b679660d3b02a12675a16df1b4d4f4e5c0de2593 by Johannes Zarl-Zierl.
Committed on 12/10/2025 at 20:06.
Pushed by johanneszarl into branch 'master'.

Update Changelog

The bugfix is in commit 47a6af5b4fa3a8a99fafa1f1bf65474381a70303.

M  +1    -0    CHANGELOG.md

https://invent.kde.org/graphics/kphotoalbum/-/commit/b679660d3b02a12675a16df1b4d4f4e5c0de2593