Bug 430427 - PSD files cannot be viewed. Thumbnails are OK.
Summary: PSD files cannot be viewed. Thumbnails are OK.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: 7.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-15 14:23 UTC by Joeri
Modified: 2021-07-05 20:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments
Screenshot of error message (553.02 KB, image/jpeg)
2020-12-15 14:23 UTC, Joeri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joeri 2020-12-15 14:23:12 UTC
Created attachment 134094 [details]
Screenshot of error message

SUMMARY


STEPS TO REPRODUCE
1. Select a photoshop file (PSD extension)
2. 
3. 

OBSERVED RESULT
error message: Failed to load image

EXPECTED RESULT
Show image

SOFTWARE/OS VERSIONS
Windows: Windows 10. Version 2004(OS BUILD 19041.685)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-12-15 16:28:35 UTC
Please make the PSD file available, if not publicly then as a private mail. Unfortunately there are hardly any PSD sample files to be found on the web.

Maik
Comment 2 Maik Qualmann 2020-12-16 08:00:45 UTC
Thank you for the PSD test image. We could do a quick fix and load the image with the ImageMagick Loader. But I see progress with the QImage Loader which uses the KImageformat plugins. In my Linux KF5 version, 8 bit loading of the PSD image is already supported. In the current KF5 version which Gilles uses for the digiKam-7.20.Beta2 Windows bundle, it is correctly recognized as a 16 bit image by the QImage Loader. But due to a bug in the conversion to our internal DImg format, a crash occurs. I think we can fix the loading of the PSD 16 bit images shortly.

Maik
Comment 3 Maik Qualmann 2020-12-16 16:55:11 UTC
Git commit 8e1a9ea9f88559ae5a9ca762135ab77845aaa78d by Maik Qualmann.
Committed on 16/12/2020 at 16:54.
Pushed by mqualmann into branch 'master'.

fix QImage Loader 16 bit support and crash

M  +29   -28   core/dplugins/dimg/qimage/dimgqimageloader.cpp
M  +1    -0    core/dplugins/dimg/qimage/dimgqimageloader.h

https://invent.kde.org/graphics/digikam/commit/8e1a9ea9f88559ae5a9ca762135ab77845aaa78d
Comment 4 Maik Qualmann 2020-12-17 07:36:20 UTC
A new test version of digiKam-7.2.0-Beta2 that contains the change is available at https://files.kde.org/digikam/. The PSD image is now displayed, except for the background (transparent). The display is the same in all programs that the KImageFormat plugins use. The problem should therefore be reported to the developers of the KImageFormat plugins with the image as an example. For the time being we will switch to the ImageMagick Loader for PSD.

Maik
Comment 5 Maik Qualmann 2020-12-18 21:01:58 UTC
Newer versions of ImageMagick also show the test image without a background. The test image has an alpha channel that fades out the background. Programs like Gimp and Krita seem to ignore the alpha channel. I'm also adding this workaround. My collection of PSD files is not very large. At the moment I don't see any problems and your test image is showing correctly. We'll keep an eye on it.

Maik
Comment 6 Maik Qualmann 2020-12-18 21:05:22 UTC
Git commit 019a64a6fad38b73ae1e93f888c97300f0e69e92 by Maik Qualmann.
Committed on 18/12/2020 at 21:04.
Pushed by mqualmann into branch 'master'.

ignore the alpha channel in PSD files
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +4    -3    core/dplugins/dimg/qimage/dimgqimageloader.cpp

https://invent.kde.org/graphics/digikam/commit/019a64a6fad38b73ae1e93f888c97300f0e69e92
Comment 7 Maik Qualmann 2021-07-05 20:29:25 UTC
*** Bug 439527 has been marked as a duplicate of this bug. ***