After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760839 - Manual export of albums and multiple images
Manual export of albums and multiple images
Status: RESOLVED OBSOLETE
Product: gnome-photos
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on: 760838 768516
Blocks:
 
 
Reported: 2016-01-19 14:01 UTC by Debarshi Ray
Modified: 2018-01-23 09:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
base-item: rename save_guess_sizes_* (14.19 KB, patch)
2016-04-01 20:42 UTC, Rafael Fonseca
none Details | Review
base-item: use more descriptive names for out_size* (3.45 KB, patch)
2016-04-01 20:43 UTC, Rafael Fonseca
none Details | Review
base-item: use more descriptive struct for size data (9.16 KB, patch)
2016-04-01 20:43 UTC, Rafael Fonseca
none Details | Review
base-item: embed photo loading into guess_save_sizes (5.89 KB, patch)
2016-04-01 20:44 UTC, Rafael Fonseca
none Details | Review
base-item: Rename save_guess_sizes_async as guess_save_sizes_async (14.29 KB, patch)
2016-06-24 13:22 UTC, Debarshi Ray
committed Details | Review
application: add get_selection function (988 bytes, patch)
2016-06-27 14:34 UTC, Rafael Fonseca
none Details | Review
application: rename get_selection_or_active_item (3.99 KB, patch)
2016-06-27 14:34 UTC, Rafael Fonseca
none Details | Review
add get_selection function (1.31 KB, patch)
2016-06-27 22:14 UTC, Rafael Fonseca
none Details | Review
application: rename get_selection_or_active_item (2.98 KB, patch)
2016-06-27 22:15 UTC, Rafael Fonseca
none Details | Review
base-item: embed item loading into guess_save_sizes_async (5.94 KB, patch)
2016-06-27 22:29 UTC, Rafael Fonseca
none Details | Review
base-item: use more descriptive names for out_size (3.38 KB, patch)
2016-07-12 08:04 UTC, Rafael Fonseca
committed Details | Review
base-item: user more descriptive struct for size data (9.04 KB, patch)
2016-07-12 08:04 UTC, Rafael Fonseca
committed Details | Review
base-item: embed item loading into guess_save_sizes_async (6.08 KB, patch)
2016-07-12 08:05 UTC, Rafael Fonseca
committed Details | Review
base-item: Use more descriptive names instead of out_size (3.50 KB, patch)
2016-07-13 08:12 UTC, Debarshi Ray
committed Details | Review
base-item, export-dialog: Calculate the size & zoom in guess_save_sizes (9.22 KB, patch)
2016-07-13 09:55 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2016-01-19 14:01:01 UTC
Currently we can only export a single image at a time. We should support exporting albums and multiple images from the selection mode. See these mockups from Allan: https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/photos/wires-export.png

We should first add an export button to the selection mode (bug 760838) before implementing this.
Comment 1 Rafael Fonseca 2016-04-01 20:39:49 UTC
How does the album export works? Suppose I'm on the Collections view and I select N albums. Which name is displayed in the export dialog? Are all the photos in those N albums saved to the same directory? Or are the albums saved separately? In the latter case, what's the name of the exported album?

A similar thing might happen in the Favorites tab. There we might have single items as well as albums. What happens if I select items and albums? What's the name displayed in the dialog? Where are the items saved to? Are the albums preserved somehow?
Comment 2 Rafael Fonseca 2016-04-01 20:42:31 UTC
Created attachment 325186 [details] [review]
base-item: rename save_guess_sizes_*
Comment 3 Rafael Fonseca 2016-04-01 20:43:04 UTC
Created attachment 325187 [details] [review]
base-item: use more descriptive names for out_size*
Comment 4 Rafael Fonseca 2016-04-01 20:43:36 UTC
Created attachment 325188 [details] [review]
base-item: use more descriptive struct for size data
Comment 5 Rafael Fonseca 2016-04-01 20:44:01 UTC
Created attachment 325189 [details] [review]
base-item: embed photo loading into guess_save_sizes
Comment 6 Debarshi Ray 2016-04-06 13:07:13 UTC
Setting ui-review for the questions in comment 1
Comment 7 Allan Day 2016-04-06 13:13:59 UTC
(In reply to Rafael Fonseca from comment #1)
> How does the album export works? Suppose I'm on the Collections view and I
> select N albums. Which name is displayed in the export dialog? Are all the
> photos in those N albums saved to the same directory? Or are the albums
> saved separately? In the latter case, what's the name of the exported album?
> 
> A similar thing might happen in the Favorites tab. There we might have
> single items as well as albums. What happens if I select items and albums?
> What's the name displayed in the dialog? Where are the items saved to? Are
> the albums preserved somehow?

I'm not convinced that we want export of multiple albums, to be honest. It will get messy. Likewise, I'm surprised that albums can belong to favorites: I'd imagined that you would only favorite photos.

For export of individual albums, I'd imagined that a folder would be created with the album name, inside the Exports directory. This is where the photos would be exported to, and it's the name that would be shown in the folder field in the export dialog.
Comment 8 Debarshi Ray 2016-04-06 13:20:17 UTC
(In reply to Allan Day from comment #7)
> I'm surprised that albums can belong to favorites:
> I'd imagined that you would only favorite photos.

We can disable / remove the favourites button for albums, if that is what you want. Tthere wasn't too much thought behind allowing albums to belong to favourites.
Comment 9 Debarshi Ray 2016-06-24 13:21:33 UTC
Review of attachment 325186 [details] [review]:

Thanks for the patch, Rafael. Looks good apart from a conflict caused by commit e977b449ae98378b

::: src/photos-base-item.c
@@ +849,1 @@
 

Nitpick: extra newline.
Comment 10 Debarshi Ray 2016-06-24 13:22:18 UTC
Created attachment 330318 [details] [review]
base-item: Rename save_guess_sizes_async as guess_save_sizes_async
Comment 11 Debarshi Ray 2016-06-24 14:34:13 UTC
Review of attachment 325188 [details] [review]:

I like the idea of moving more of the size guessing logic into BaseItem. It will make it more manageable to export multiple items. However, I guess, we will only know once the whole patch set evolves a bit towards the ultimate goal.

::: src/photos-export-dialog.c
@@ +171,3 @@
       g_free (size_str_markup);
 
+      /* FIXME: get this from BaseItem? */

Yes, that will be nice. Maybe add a 'zoom' member to the PhotosBaseItemSize struct?
Comment 12 Debarshi Ray 2016-06-24 14:36:57 UTC
Review of attachment 325187 [details] [review]:

::: src/photos-base-item.h
@@ +177,3 @@
                                                               GAsyncResult *res,
+                                                              gsize *full_size,
+                                                              gsize *reduced50_size,

How about calling it 'reduced_size' instead of 'reduced50_size'? It will be in sync with the changes in attachment 325188 [details] [review] and reduce some of the delta there.
Comment 13 Rafael Fonseca 2016-06-27 14:34:28 UTC
Created attachment 330440 [details] [review]
application: add get_selection function

This will be used in future patches for exporting the whole selection.
Comment 14 Rafael Fonseca 2016-06-27 14:34:57 UTC
Created attachment 330441 [details] [review]
application: rename get_selection_or_active_item
Comment 15 Rafael Fonseca 2016-06-27 22:14:43 UTC
Created attachment 330461 [details] [review]
add get_selection function

Now submitting the right version.
Comment 16 Rafael Fonseca 2016-06-27 22:15:15 UTC
Created attachment 330462 [details] [review]
application: rename get_selection_or_active_item
Comment 17 Rafael Fonseca 2016-06-27 22:29:12 UTC
Created attachment 330464 [details] [review]
base-item: embed item loading into guess_save_sizes_async
Comment 18 Rafael Fonseca 2016-07-12 08:04:07 UTC
Created attachment 331305 [details] [review]
base-item: use more descriptive names for out_size
Comment 19 Rafael Fonseca 2016-07-12 08:04:33 UTC
Created attachment 331306 [details] [review]
base-item: user more descriptive struct for size data
Comment 20 Rafael Fonseca 2016-07-12 08:05:46 UTC
Created attachment 331307 [details] [review]
base-item: embed item loading into guess_save_sizes_async
Comment 21 Debarshi Ray 2016-07-13 08:12:08 UTC
Review of attachment 331305 [details] [review]:

::: src/photos-base-item.h
@@ +178,3 @@
                                                               GAsyncResult *res,
+                                                              gsize *full_size,
+                                                              gsize *reduced_size,

Nitpick: I would keep the 'out_' prefix because it denotes that location pointed to by the pointer will be filled in by the function. It's just one of those little things that we copied from glib/gtk+ convention.
Comment 22 Debarshi Ray 2016-07-13 08:12:50 UTC
Created attachment 331386 [details] [review]
base-item: Use more descriptive names instead of out_size

Fixed and pushed.
Comment 23 Debarshi Ray 2016-07-13 09:54:55 UTC
Review of attachment 331306 [details] [review]:

Thanks for the nice clean-up, Rafael.

::: src/photos-base-item.c
@@ +2357,3 @@
+  got_bbox_edited = photos_base_item_get_bbox_edited (self, &bbox);
+  if (!got_bbox_edited)
+    goto out;

We should ideally set the GError.
Comment 24 Debarshi Ray 2016-07-13 09:55:43 UTC
Created attachment 331393 [details] [review]
base-item, export-dialog: Calculate the size & zoom in guess_save_sizes

Rebased against master, fixed it up and pushed.
Comment 25 Debarshi Ray 2016-07-25 07:19:21 UTC
Review of attachment 331307 [details] [review]:

Looks good, thanks.
Comment 26 GNOME Infrastructure Team 2018-01-23 09:52:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-photos/issues/40.