Bug 454940 - Exporting PSD files to Google Photos fails under Windows works under Linux
Summary: Exporting PSD files to Google Photos fails under Windows works under Linux
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-06 19:09 UTC by Ilgaz Öcal
Modified: 2022-06-20 17:16 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilgaz Öcal 2022-06-06 19:09:16 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Select PSD files 
2. Click "export to google photos
3. 

OBSERVED RESULT

It fails with "an error occured, continue?" prompt
EXPECTED RESULT

They should be converted to JPEG (I guesss) and uploaded to selected album

SOFTWARE/OS VERSIONS
Windows: Windows 11 22000.708
macOS: 
Linux/KDE Plasma: current openSUSE Tumbleweed Digikam and Plasma (should be latest)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

I have installed openSUSE Tumbleweed to a seperate partition and tried the same action. Surprisingly it worked. Same Digikam version, slightly older (1 version behind I guess) Firefox default browser. I can provide an example PSD file if needed.
Comment 1 caulier.gilles 2022-06-07 04:28:28 UTC
Hi,

Because it miss certain a Qt image IO plugin to process PSD under Windows. This one is used by Google webservice plugin to convert PSD to JPEG before to upload images.

Best

Gilles Caulier
Comment 2 Maik Qualmann 2022-06-07 05:40:00 UTC
I cannot reproduce the problem with my available PSD files on Windows. The error message indicates that you are trying to upload the file to a locked (not created by digiKam) album. The Google API prohibits uploaders from uploading to "foreign" albums. It doesn't look like Google will change that. We have bug reports on Google and also a bug report on digiKam. Check that the album has no locked lock icon in the list of albums in digiKam Google Photo uploader.

Maik
Comment 3 Ilgaz Öcal 2022-06-07 06:25:23 UTC
(In reply to Maik Qualmann from comment #2)
> I cannot reproduce the problem with my available PSD files on Windows. The
> error message indicates that you are trying to upload the file to a locked
> (not created by digiKam) album. The Google API prohibits uploaders from
> uploading to "foreign" albums. It doesn't look like Google will change that.
> We have bug reports on Google and also a bug report on digiKam. Check that
> the album has no locked lock icon in the list of albums in digiKam Google
> Photo uploader.
> 
> Maik

I am aware of "locked album" issue and I made sure I am not uploading to any album with lock sign on left. Here is one of the files to test, it is saved with "maximize compatibility" setting enabled under current Photoshop. No copyright of course.
https://drive.google.com/file/d/19i1hqCAuqzthJmEZSoSJGDz8UfROJcAS/view?usp=sharing
Comment 4 Maik Qualmann 2022-06-07 20:55:13 UTC
The link to the PSD file is not public, I submitted an access request via Google Drive.

Maik
Comment 5 Ilgaz Öcal 2022-06-08 04:40:52 UTC
(In reply to Maik Qualmann from comment #4)
> The link to the PSD file is not public, I submitted an access request via
> Google Drive.
> 
> Maik

Hello Maik

Absolutely sorry for that, Google has "enhanced" things again. Here is the fixed link
https://drive.google.com/file/d/19i1hqCAuqzthJmEZSoSJGDz8UfROJcAS/view?usp=sharing
Comment 6 Maik Qualmann 2022-06-08 08:41:31 UTC
Thanks for the sample PSD file. Yes, loading the image fails on Windows. The QImage Loader only returns that the image cannot be loaded. So the problem is related to the KImageFormat plugins. Difficult to say what is the problem with this PSD file and what is missing when compiling the KImageFormat plugins on Windows. My other test PSD files even have layers and load on Windows.

Maik
Comment 7 Maik Qualmann 2022-06-18 20:55:56 UTC
This is dependent on the KImageFormatPlugins version. We are currently on KF-5.92 in the Windows bundle. There were many improvements on KF-5.93. In our MSVC build of digiKam with KF-5.95, the PSD image is displayed without any problems.

Maik
Comment 8 caulier.gilles 2022-06-20 11:09:40 UTC
A new 7.7.0 pre-release installer for Windows is available here :

https://files.kde.org/digikam/

It's based on KF5 5.95 and this must solve your problem.

Please test and report

Gilles Caulier
Comment 9 Maik Qualmann 2022-06-20 11:40:58 UTC
The corresponding sample PSD image can now be loaded with digiKam-7.7.0.

Maik
Comment 10 Ilgaz Öcal 2022-06-20 15:17:48 UTC
(In reply to caulier.gilles from comment #8)
> A new 7.7.0 pre-release installer for Windows is available here :
> 
> https://files.kde.org/digikam/
> 
> It's based on KF5 5.95 and this must solve your problem.
> 
> Please test and report
> 
> Gilles Caulier

Hello,

Thank you. It is all fine now, I tested other images too and also made a "test" album to be sure. It is fixed.