createImageBitmap
behaves weirdly with JPEG images with an EXIF orientation other than 1.
- Run
npm install
- Run
npm start
to start the server
Image
--> ImageBitmap
is cut off when dWidth
and dHeight
is provided to ctx.drawImage
, it's stretched when dWidth
and dHeight
is omitted from the ctx.drawImage
. Additionally, the image dimensions are flipped.
Adding img.crossOrigin = 'anonymous'
to fetchImage
seems to resolve the issue.
Blob
--> ImageBitmap
is cut off, and EXIF orientation is not taken into account.
Exactly how it should be.
Exactly how it should be.