| Summary: | The Radiance/RGBE/.hdr QImageIOHandler plugin is broken. Non-square images fail to load. | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kimageformats | Reporter: | Fonkle <fonkle> |
| Component: | general | Assignee: | Alex Merry <alex.merry> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.79.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kimageformats/commit/503b3eee2b3ed599310e1e6e41e74398f53a6303 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Fonkle
2021-03-02 21:24:02 UTC
QImageIOPlugin = QImageIOHandler plugin. Git commit 503b3eee2b3ed599310e1e6e41e74398f53a6303 by Albert Astals Cid, on behalf of Fred Fonkle. Committed on 04/03/2021 at 21:57. Pushed by aacid into branch 'master'. Fix Non-square Radiance/RGBE/.hdr images failing to load The HDR QImageIOHandler plugin only supports the default image orientation (-Y +X) in .hdr files. It mixes up the width and height however, resulting in non-square images not loading. This fix adds a check for the standard image orientation in the file and returns false (with error message) if that fails. If it succeeds, it takes the height from the -Y component, and the width from the +X component, resulting in successful loading of the image. Add autotest images for landscape and portrait HDR (Radiance RGBE) loader A +- -- autotests/read/hdr/rgb-landscape.hdr A +- -- autotests/read/hdr/rgb-landscape.png A +- -- autotests/read/hdr/rgb-portrait.hdr A +- -- autotests/read/hdr/rgb-portrait.png M +9 -2 src/imageformats/hdr.cpp https://invent.kde.org/frameworks/kimageformats/commit/503b3eee2b3ed599310e1e6e41e74398f53a6303 |