You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Expected Behavior
rotate(90)
should have resultingwidth===oldHeight
andheight===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)
, androtate(-180)
Probably some special cases could be considered for fast rotate.
The text was updated successfully, but these errors were encountered: