Make WordPress Core

Opened 7 weeks ago

Closed 7 weeks ago

Last modified 6 weeks ago

#62912 closed defect (bug) (reported-upstream)

Issue with Image Crop Option in Block Editor (Original Ratio Not Maintained)

Reported by: mikinc860's profile mikinc860 Owned by:
Milestone: Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords:
Focuses: Cc:

Description

I am experiencing an issue while using the Block Editor in WordPress. When I select the "Original" option while cropping an image, it still crops the image to a different aspect ratio, not preserving the original dimensions and proportions as expected.

Steps to Reproduce:

  1. Go to the Block Editor and add an image block.
  2. Click on the image to edit it.
  3. Select the "Crop" option.
  4. Choose the "Original" aspect ratio.
  5. The image still gets cropped into a different aspect ratio (e.g., 1:1, 4:3, etc.), instead of maintaining the original size.

Expected Behavior: When selecting the "Original" aspect ratio, the image should maintain its original dimensions without cropping.

Attachments (1)

image-cropping.mp4 (727.8 KB) - added by mikinc860 7 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @sainathpoojary
7 weeks ago

Hey @mikinc860

Thank you for bringing this issue to the attention! I was able to reproduce the issue on my end as well. Since the cropping functionality in the Block Editor is part of the Gutenberg, it would be best to report this in the Gutenberg repository for further assistance.

#2 @yogeshbhutkar
7 weeks ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanks for raising the ticket, @mikinc860.

I've created a corresponding issue in the Gutenberg repository and submitted a patch for it. Since the issue has been reported upstream, I'll close this ticket.

Issue Link: https://github.com/WordPress/gutenberg/issues/69084

#3 @desrosj
6 weeks ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.