Skip to content

rotate(90) should have resulting width===oldHeight and height===oldWidth #1101

@arnhrwd

Description

@arnhrwd

Expected Behavior

rotate(90) should have resulting width===oldHeight and height===oldWidth

Current Behavior

rotate(90) provides a rotated image with incorrect dimensions. Code for the plugin indeed shows it does things like uni-laterally increase the resulting width and height to be an even number, etc.

I assume it is the same for rotate(-90), rotate(180), and rotate(-180)

Probably some special cases could be considered for fast rotate.

  • Jimp Version: ^0.16.2
  • Operating System: Ubuntu
  • Node version: 18.10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions