[wp-trac] [WordPress Trac] #53300: Select and Crop for header images, crop area is entire image

WordPress Trac noreply at wordpress.org
Sat Jul 24 13:02:17 UTC 2021


#53300: Select and Crop for header images, crop area is entire image
--------------------------+------------------------------
 Reporter:  TylerTork     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Changes (by spacedmonkey):

 * keywords:   => needs-patch


Comment:

 For context, I believe we have found this same issue while working on our
 plugin [https://github.com/google/web-stories-wp Web stories]. Here is the
 original [https://github.com/google/web-stories-wp/issues/8398 issue].

 This change as documented in the ticket seems reasonable to me

 {{{#!php
    imgWidth = Math.ceil($img.innerWidth());
    imgHeight = Math.ceil($img.innerHeight());
 }}}

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


More information about the wp-trac mailing list