compressorjs icon indicating copy to clipboard operation
compressorjs copied to clipboard

IOS-img-rotate

Open Asterwen opened this issue 3 years ago • 5 comments

Describe the bug IOS照片上传部分手机机型还是会出现照片翻转的情况,iphone8 版本13.5.1

Asterwen avatar Oct 09 '21 03:10 Asterwen

Describe the bug IOS照片上传部分手机机型还是会出现照片翻转的情况,iphone8 版本13.5.1

same problem, iOS rotate the image, in Android seems to be ok

gtrejoDZ avatar Oct 12 '21 15:10 gtrejoDZ

I have no device to check it, you can try the set the checkOrientation option to false, or try to set the image-orientation CSS style.

fengyuanchen avatar Oct 22 '21 13:10 fengyuanchen

photos from the android camera have no EXIF attributes, in that case, the orientation may be set to 1 meanwhile, in ios devices the EXIF attributes exists, then I use the npm exif-js package to read that attributes for orientation

gtrejoDZ avatar Nov 03 '21 22:11 gtrejoDZ

when set quality less than 0.6 , the img rotate is fine . set quality to 0.8 or 1 . img will rotate 90

Asterwen avatar Dec 16 '21 06:12 Asterwen

@Asterwen You can set the strict to false for your case.

fengyuanchen avatar Dec 18 '21 07:12 fengyuanchen