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 739871 - change default size for avatar cropping
change default size for avatar cropping
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
Depends on: 739870
Blocks:
 
 
Reported: 2014-11-10 10:50 UTC by Ondrej Holy
Modified: 2014-11-25 14:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Change default size for avatar cropping (2.10 KB, patch)
2014-11-10 10:50 UTC, Ondrej Holy
needs-work Details | Review
user-accounts: change default size for avatar cropping (2.25 KB, patch)
2014-11-25 12:31 UTC, Ondrej Holy
reviewed Details | Review
what it is doing (576.88 KB, image/png)
2014-11-25 12:38 UTC, Ondrej Holy
  Details
user-accounts: change default size for avatar cropping (2.24 KB, patch)
2014-11-25 13:09 UTC, Ondrej Holy
committed Details | Review

Description Ondrej Holy 2014-11-10 10:50:01 UTC
Created attachment 290328 [details] [review]
Change default size for avatar cropping

Change default size for avatar cropping to correspond with changes in cheese. The default size should be based on maximal size of the image (Bug 710874) instead of minimal size for cropping. It has to be also limited to fit size of image (to avoid crashes), see Bug 739870 for cheese for more details.
Comment 1 Ondrej Holy 2014-11-12 08:16:12 UTC
The patch for cheese was already accepted and pushed...
Comment 2 Bastien Nocera 2014-11-24 11:26:19 UTC
Review of attachment 290328 [details] [review]:

::: panels/user-accounts/cc-crop-area.c
@@ +149,3 @@
+
+                        /* Scale the crop rectangle to 80% of the size of pixbuf, or less to fit the current crop area */
+                        crop_scale = MIN (MIN ((gdouble)gdk_pixbuf_get_width (area->priv->pixbuf) / area->priv->base_width * 0.8,

This is unreadable.
Comment 3 Ondrej Holy 2014-11-25 12:31:46 UTC
Created attachment 291444 [details] [review]
user-accounts: change default size for avatar cropping

There is new patch, it does same thing as the one from cheese, however it is just "reformatted". Is the patch still unreadable (first part is from your commit to cheese)?
Comment 4 Ondrej Holy 2014-11-25 12:38:06 UTC
Created attachment 291445 [details]
what it is doing

There is screenshot...
Comment 5 Ondrej Holy 2014-11-25 12:49:21 UTC
Comment on attachment 291444 [details] [review]
user-accounts: change default size for avatar cropping

Have made some change before attaching and it wasn't working like intended now, it needs some changes...
Comment 6 Ondrej Holy 2014-11-25 13:09:43 UTC
Created attachment 291450 [details] [review]
user-accounts: change default size for avatar cropping

Wrong variable name, it should be fixed now...
Comment 7 Bastien Nocera 2014-11-25 14:03:07 UTC
Review of attachment 291450 [details] [review]:

Much better, thanks.
Comment 8 Ondrej Holy 2014-11-25 14:22:00 UTC
Comment on attachment 291450 [details] [review]
user-accounts: change default size for avatar cropping

commit 33052abe9c3db34c502d7f28938d169a2f540247
Comment 9 Ondrej Holy 2014-11-25 14:24:03 UTC
Thanks for review!
Comment 10 Ondrej Holy 2014-11-25 14:25:58 UTC
Comment on attachment 291450 [details] [review]
user-accounts: change default size for avatar cropping

Also for gnome-3-14:
commit a162ccb53407315b7993bd39a0f37dc3b1f08a61