Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.31k stars 161 forks source link

Orientate error when compression #126

Closed quangthienit1994 closed 2 years ago

quangthienit1994 commented 3 years ago

When compressing an image on IOS ( my case ios 15 ) the orientate auto make vertical become horizontal and image has been cropped, image

Donaldcwl commented 3 years ago

@quangthienit1994 May I know which version are you using? The latest v1.0.17 should have fixed this issue.

angelynats commented 2 years ago

Still have the same bug in v1.0.17

Donaldcwl commented 2 years ago

Please provide the image, the device you use, the browser version and the steps to reproduce.

quangthienit1994 commented 2 years ago

@Donaldcwl Version using: "browser-image-compression": "^1.0.12" The problem is only on IOS, I check IPhone 6 (ios 12) and Iphone Xr (ios 15): the same issues

Donaldcwl commented 2 years ago

@Donaldcwl Version using: "browser-image-compression": "^1.0.12" The problem is only on IOS, I check IPhone 6 (ios 12) and Iphone Xr (ios 15): the same issues

The version in package.json file does not necessarily be the installed version according to NPM. Please console.log the version to see the actual version you are using: console.log('imageCompression version', imageCompression.version)

AreebKhan619 commented 2 years ago

@Donaldcwl Version using: "browser-image-compression": "^1.0.12" The problem is only on IOS, I check IPhone 6 (ios 12) and Iphone Xr (ios 15): the same issues

The version in package.json file does not necessarily be the installed version according to NPM. Please console.log the version to see the actual version you are using: console.log('imageCompression version', imageCompression.version)

I'm having the same issue. After logging it using imageCompression.version, I'm getting the version as 1.0.14 (which is the same as indicated by my package.json file).

Donaldcwl commented 2 years ago

@Donaldcwl Version using: "browser-image-compression": "^1.0.12" The problem is only on IOS, I check IPhone 6 (ios 12) and Iphone Xr (ios 15): the same issues

The version in package.json file does not necessarily be the installed version according to NPM. Please console.log the version to see the actual version you are using: console.log('imageCompression version', imageCompression.version)

I'm having the same issue. After logging it using imageCompression.version, I'm getting the version as 1.0.14 (which is the same as indicated by my package.json file).

Please upgrade to version 1.0.17 and try again.