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
I have a problem when I load some images uploaded from mobile device and when I load image with canvas I have the image that is made with rotation by default (while I have verified that there is no rotation in the original image)
Steps to Reproduce
import{createCanvas,loadImage}from'canvas';constimg=awaitloadImage(pictureBuffer)constcanvas=createCanvas(img.width,img.height,'pdf');constctx=canvas.getContext('2d')ctx.drawImage(img,0,0,img.width,img.height)constpdfBuffer=canvas.toBuffer('application/pdf');// save pdf
Your Environment
Version of node-canvas: 2.9.0
node v14.15.3 on Mac OS X 12.2
The text was updated successfully, but these errors were encountered:
Bug
I have a problem when I load some images uploaded from mobile device and when I load image with canvas I have the image that is made with rotation by default (while I have verified that there is no rotation in the original image)
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: