[wp-trac] [WordPress Trac] #32282: WordPress image cropping is buggy

WordPress Trac noreply at wordpress.org
Fri Jun 21 19:49:35 UTC 2024


#32282: WordPress image cropping is buggy
------------------------------+-----------------------------
 Reporter:  Jossnaz           |       Owner:  joedolson
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.6
Component:  Media             |     Version:  4.2.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  administration
------------------------------+-----------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58456" 58456]:
 {{{
 #!CommitTicketReference repository="" revision="58456"
 Media: Fix admin image cropping calculations.

 The admin image editor crop function introduced rounding errors by using a
 scaled image to calculate values. Fix uses the image at 100% scale for
 calculations. Also avoid recalculating selection when the selection
 position is changed, and prevent incorrect values after scaling or
 restoration.

 Props Jossnaz, johnillo, shailu25, rachelbaker, sudipatel007, joedolson.
 Fixes #32282.
 }}}

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


More information about the wp-trac mailing list