[wp-trac] [WordPress Trac] #63049: Image Editor: Changing crop aspect ratio can allow cropping area to exceed image boundary

WordPress Trac noreply at wordpress.org
Mon Mar 3 22:41:18 UTC 2025


#63049: Image Editor: Changing crop aspect ratio can allow cropping area to exceed
image boundary
-------------------------+-----------------------------
 Reporter:  jordesign    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  6.7.2
 Severity:  normal       |   Keywords:
  Focuses:  ui           |
-------------------------+-----------------------------
 This experience can be recreated when editing an image in the core editor,
 and cropping it. When changing the aspect ratio of the crop - it appears
 to keep the fixed width of the cropping area and adjust the height based
 on the new ratio.

 In some cases this will take the cropped area *outside* the border of the
 image and result in an error.

 https://snipboard.io/GlBFq8.jpg

 An enhancement would be to adjust height/width of the cropping area to
 ensure it is contained within the image.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63049>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list