Skip to content

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

Closed

Description

@ajlende

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 e33a49b (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

Activity

  1. added
    [Type] Bug
    [Block] Image
    on Sep 23, 2022
  2. added
    [Status] In Progress
    on Sep 23, 2022
  3. removed
    [Status] In Progress
    on Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Block] Image[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions