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
Expected Behavior
rotate(90)should have resultingwidth===oldHeightandheight===oldWidthCurrent 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), androtate(-180)Probably some special cases could be considered for fast rotate.