Bug 479850 - Set album name automatically when exporting an album to Google Photos
Summary: Set album name automatically when exporting an album to Google Photos
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (other bugs)
Version First Reported In: 8.2.0
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 15:20 UTC by chimney@thespicers.net
Modified: 2024-01-30 16:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chimney@thespicers.net 2024-01-15 15:20:27 UTC
If you right-click on an album and select "Export to Google Photos...", the Album selection in digiKam is set to <auto-create>. This causes the exported photos to not be placed in any album in Google Photos. It would be helpful if digiKam instead defaulted the album selection to the name of the album being exported. For example, exporting an album called Crazy Kittens would result in the default entry also being "Crazy Kittens". This would make for a simpler workflow when uploading albums to Google.

The workaround at present is to use the New Album button and manually type the name of the digiKam album. Note, that digiKam actually creates the album in Google at this point regardless of whether the user then chooses to continue with the export. If digiKam can default to using the digiKam album name, it would be desirable for the Google album to only be created if/when the user clicks Start Upload.
Comment 1 Maik Qualmann 2024-01-15 17:29:16 UTC
This wish doesn't really make sense. Images to be exported can also come from a tag, date or search album. We then have images from different physical albums. Which album name should we use then?

Maik
Comment 2 chimney@thespicers.net 2024-01-16 11:53:04 UTC
I am talking about the specific situation when a user right-clicks on an album and chooses Export to Google Photos from the resulting context menu. As the user has specifically chosen this action on an album I believe the context is clear.

With the current implementation, having export as a context-menu item for an album doesn't really make sense as the export appears to actually act on the currently selected photos and disregards the context that the export was triggered on a specific album. See also bug 479852.

One solution would be to simply remove the context menu option as I believe it is misleading. However, the ability to easily export an album to Google Photos would be a useful feature.
Comment 3 chimney@thespicers.net 2024-01-22 11:53:31 UTC
In bug 47985, Maik Qualmann said:
> Ok, I understand, you use the export via the context menu of the album tree view. I've never used that before. We currently cannot distinguish whether the export is started via the album tree view or item view

Would it be possible to add an argument to the exporter that provides a suggestion for the album name and then pass that argument when launching the exporter from the context menu?
Comment 4 Maik Qualmann 2024-01-22 21:53:17 UTC
Git commit a0bcb391bb1f81e21488fc76f05f598c8eb8561b by Maik Qualmann.
Committed on 22/01/2024 at 22:52.
Pushed by mqualmann into branch 'master'.

set suggestion for new Google Photo Album,
and set to current Google Photo Album if it exists
FIXED-IN: 8.3.0

M  +1    -1    NEWS
M  +22   -2    core/dplugins/generic/webservices/google/gswindow.cpp
M  +5    -0    core/libs/dplugins/webservices/wsnewalbumdialog.cpp
M  +1    -0    core/libs/dplugins/webservices/wsnewalbumdialog.h
M  +14   -0    core/libs/dplugins/webservices/wssettingswidget.cpp
M  +2    -0    core/libs/dplugins/webservices/wssettingswidget.h

https://invent.kde.org/graphics/digikam/-/commit/a0bcb391bb1f81e21488fc76f05f598c8eb8561b
Comment 5 chimney@thespicers.net 2024-01-30 12:41:02 UTC
Thanks for the fix. How should this work?

With the 28/01/2024 13:06 8.3.0 snapshot I do not see an album name set when I right-click on an album and select Export to Google Photos. The album remains set to <auto-create> and the export results in the photos not being added to any album. I would expect that in this situation the Google album would be set to the name of the selected digiKam album and the Google album would be created by the export.
Comment 6 Maik Qualmann 2024-01-30 16:38:05 UTC
In the create new album dialog, the album name is already set and no longer needs to be entered. If a Google Photo album with the album name exists, it will be automatically selected.
We won't automatically create Google Photo albums.

Maik
Comment 7 chimney@thespicers.net 2024-01-30 16:56:58 UTC
Okay, understood. I've confirmed that it works this way for me with the snapshot build. Thanks!