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
{{ message }}
Repository navigation
Image rotation doesn't maintain height and width #29
Describe the bug
When an image is rotated the height and width are not changed. For example, if we have an image with an orientation of 6, we need to rotate it 90 degrees to be viewed properly. When calling .rotate(270) on the image, black bars are added to the left and right of the image to maintain the original height and width. Rotating the image 90 degrees causes the height and width to be swapped, but it looks like the height and width are not swapped causing black bars on either side of the image.
Fixed in 3.0.0: rotate(90) / rotate(270) now swap width and height without black bars. JPEGs are also rotated according to their Exif orientation automatically on decode, so the manual rotation is often no longer needed (Image.decode(data, { applyOrientation: false }) opts out).
Activity
[-][BUG][/-][+]Image rotation doesn't maintain height and width[/+]fix rotation, compositing and cropCircle
matmen commentedon Oct 14, 2026
Fixed in 3.0.0: rotate(90) / rotate(270) now swap width and height without black bars. JPEGs are also rotated according to their Exif orientation automatically on decode, so the manual rotation is often no longer needed (Image.decode(data, { applyOrientation: false }) opts out).
renderText: shape text in every script, bidirectional text, UAX #14 w…