[wp-trac] [WordPress Trac] #40211: Media cropping: retain aspect ration when you shift+click/drag

WordPress Trac noreply at wordpress.org
Sun Jul 16 19:29:23 UTC 2017


#40211: Media cropping: retain aspect ration when you shift+click/drag
-----------------------------------------+------------------------------
 Reporter:  melchoyce                    |       Owner:
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Media                        |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:   => has-patch reporter-feedback


Comment:

 In [attachment:40211.diff]: Adjust cropper tool used in customizer so that
 shift locks the aspect ratio at '1:1'

 * When using the cropper view, set a ration of 1:1 when the shift key is
 held when dragging.

 This seems intuitive to work this way to me. Might be worth looking at how
 any plugins are using the cropper view in case we want to make the default
 ratio configurable.

 @melchoyce can you please give this a test and see if it works as you
 expected? I tested in twentyseventeen customizer editing the logo image.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40211#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list