Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Editor: Incorrect 180º and 270º rotation cropping area #44422

Closed
ajlende opened this issue Sep 23, 2022 · 0 comments · Fixed by #44425
Closed

Image Editor: Incorrect 180º and 270º rotation cropping area #44422

ajlende opened this issue Sep 23, 2022 · 0 comments · Fixed by #44425
Assignees
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended

Comments

@ajlende
Copy link
Contributor

ajlende commented Sep 23, 2022

Description

When using the inline image editor, rotating the image has the wrong aspect ratio for the cropping area. With a landscape image at a 180º rotation, the aspect ratio should be landscape again, but it is still portrait. And at a 270º rotation it should be portrait, but is landscape.

Step-by-step reproduction instructions

  1. Insert image block in site editor or post editor
  2. Use the image editing controls to rotate the image 180º and 270º (2 presses and 3 presses, respectively)
  3. See incorrect crop area in both rotations

Screenshots, screen recording, code snippet

image-rotation-bug

Environment info

  • WordPress trunk e33a49b1bd (wordpress-develop git)
  • Gutenberg trunk 8c648ab

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@ajlende ajlende added [Type] Bug An existing feature does not function as intended [Block] Image Affects the Image Block labels Sep 23, 2022
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Sep 23, 2022
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants