Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.3k stars 160 forks source link

getting black image after compression on iPhone Chrome (not safari???) #169

Closed JordanDDisch closed 1 year ago

JordanDDisch commented 2 years ago

Device:

Steps to reproduce:

You can try those same steps for iPhone Safari and not have that issue (also not an issue on Macbook Pro M1 using chrome 107.0.5304.110) 🤷

Also to note not an issue on Android phone (Android v9, chrome 107.0.5304.105)

iPhone Chrome: IMG_4043

iPhone Safari: IMG_4044

JordanDDisch commented 2 years ago

it looks like chrome for IOS doesn't support very large canvas sizes. Used canvas-size github library to check and it looks like chrome for iphone only gives you a max canvas size of 4,096 x 4,096. Safari does also give a similar canvas size 4,096 x 4,096 but the allowed width and height are much larger then chrome for iphone.

beyondlevi commented 1 year ago

@Donaldcwl, thank you for your great work and indispensable tool. Any predictions on when the new version that fixes these issues with iOS 16.3 will be released?

Donaldcwl commented 1 year ago

@beyondlevi Will release it in a few days. Thanks.