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 762942 - tool-crop: Update the crop presets
tool-crop: Update the crop presets
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
3.19.x
Other All
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-03-01 19:10 UTC by Umang Jain
Modified: 2016-03-05 10:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tool-crop: Update crop presets (5.48 KB, patch)
2016-03-02 10:10 UTC, Umang Jain
none Details | Review
tool-crop: Update crop presets (5.53 KB, patch)
2016-03-02 10:16 UTC, Umang Jain
none Details | Review
tool-crop: Update crop presets (5.55 KB, patch)
2016-03-02 14:10 UTC, Debarshi Ray
none Details | Review
tool-crop: Update crop presets (5.54 KB, patch)
2016-03-02 14:21 UTC, Umang Jain
accepted-commit_now Details | Review
Crop presets (without patch) (13.03 KB, image/png)
2016-03-03 04:36 UTC, Umang Jain
  Details
Updated crop presets (15.56 KB, image/png)
2016-03-03 04:38 UTC, Umang Jain
  Details
tool-crop: Update crop presets (5.55 KB, patch)
2016-03-03 16:41 UTC, Debarshi Ray
committed Details | Review
Updated crop presets (16.61 KB, image/png)
2016-03-03 17:30 UTC, Umang Jain
  Details

Description Umang Jain 2016-03-01 19:10:36 UTC
Update the crop palette to match the list as per the mockup:

https://dl.dropboxusercontent.com/u/5031519/photos/crop-3.20.png
Comment 1 Umang Jain 2016-03-02 10:10:35 UTC
Created attachment 322833 [details] [review]
tool-crop: Update crop presets
Comment 2 Umang Jain 2016-03-02 10:16:54 UTC
Created attachment 322836 [details] [review]
tool-crop: Update crop presets
Comment 3 Debarshi Ray 2016-03-02 14:09:42 UTC
Review of attachment 322836 [details] [review]:

Thanks for the patch, Umang.

::: src/photos-tool-crop.c
@@ +137,3 @@
+  { PHOTOS_TOOL_CROP_ASPECT_RATIO_BASIS, N_("3x2 / 6x4"), 3, 2 },
+  { PHOTOS_TOOL_CROP_ASPECT_RATIO_BASIS, N_("16x10 (1920x1080)"), 16, 10 },
+  { PHOTOS_TOOL_CROP_ASPECT_RATIO_BASIS, N_("16x9 (1280x800)"), 16, 9 }

We should use the proper Unicode character (ie. '×') instead of 'x'. See https://wiki.gnome.org/Design/OS/Typography
Comment 4 Debarshi Ray 2016-03-02 14:10:42 UTC
Created attachment 322864 [details] [review]
tool-crop: Update crop presets

I fixed the Unicode issue.
Comment 5 Debarshi Ray 2016-03-02 14:12:23 UTC
Review of attachment 322864 [details] [review]:

Something for you to fix:

::: src/photos-tool-crop.c
@@ +132,3 @@
+  { PHOTOS_TOOL_CROP_ASPECT_RATIO_ORIGINAL, N_("Original"), 0, 0 },
+  { PHOTOS_TOOL_CROP_ASPECT_RATIO_BASIS, N_("1×1 (Square)"), 1, 1 },
+  { PHOTOS_TOOL_CROP_ASPECT_RATIO_BASIS, N_("10×8 / 5×4"), 5, 4 },

All the presets should be in landscape orientation. That means the first number (ie. the height) should be less than the second (ie. the width).
Comment 6 Umang Jain 2016-03-02 14:21:33 UTC
Created attachment 322866 [details] [review]
tool-crop: Update crop presets
Comment 7 Debarshi Ray 2016-03-02 17:38:33 UTC
Can you please attach screenshots with and without your patch?
Comment 8 Umang Jain 2016-03-03 04:36:45 UTC
Created attachment 322939 [details]
Crop presets (without patch)
Comment 9 Umang Jain 2016-03-03 04:38:05 UTC
Created attachment 322940 [details]
Updated crop presets
Comment 10 Umang Jain 2016-03-03 04:39:11 UTC
(In reply to Debarshi Ray from comment #7)
> Can you please attach screenshots with and without your patch?

Done.
Comment 11 Debarshi Ray 2016-03-03 15:17:22 UTC
Review of attachment 322866 [details] [review]:

Thanks, Umang. This is perfect.

Since this affects user-facing strings, we would need permission [1] from the translation team before pushing.

[1] https://wiki.gnome.org/ThreePointNineteen
Comment 12 Abderrahim Kitouni 2016-03-03 16:28:06 UTC
Just a little remark on the patch: 1920x1080 is actually 16x9 and 1280x800 is 16x10.
Comment 13 Debarshi Ray 2016-03-03 16:40:43 UTC
(In reply to Abderrahim Kitouni from comment #12)
> Just a little remark on the patch: 1920x1080 is actually 16x9 and 1280x800
> is 16x10.

Of course, you are right. Embarassing.
Comment 14 Debarshi Ray 2016-03-03 16:41:22 UTC
Created attachment 323007 [details] [review]
tool-crop: Update crop presets
Comment 15 Umang Jain 2016-03-03 17:30:40 UTC
Created attachment 323010 [details]
Updated crop presets
Comment 16 Debarshi Ray 2016-03-04 07:59:14 UTC
Comment on attachment 323007 [details] [review]
tool-crop: Update crop presets

Permission granted. Pushed to master.
Comment 17 Debarshi Ray 2016-03-04 07:59:31 UTC
Thanks for the quick fix, Umang.
Comment 18 Anders Jonsson 2016-03-05 09:59:42 UTC
I'll add a short question that I had when translating gnome-photos. These are ratios, so is there a reason that they are written as for example 16×10 rather than 16∶10?

With 16×10 my first guess would be that something is 16×10 cm or 16×10 inches.
Comment 19 Debarshi Ray 2016-03-05 10:47:16 UTC
(In reply to Anders Jonsson from comment #18)
> I'll add a short question that I had when translating gnome-photos. These
> are ratios, so is there a reason that they are written as for example 16×10
> rather than 16∶10?

I will let Allan answer that. If you look at the screenshots then you will notice that it used to be the way you are suggesting here.

> With 16×10 my first guess would be that something is 16×10 cm or 16×10
> inches.

Would a comment be helpful?