Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Compression On Ipad Safari Browser Results In Black Image When Image Is Over 10MB #205

Open
s3venvials opened this issue Jul 19, 2023 · 3 comments

Comments

@s3venvials
Copy link

s3venvials commented Jul 19, 2023

Hello, when using the latest version of your library 2.0.2 with in the Safari browser to compress an image the image displays as a black image on some versions of IOS when the image is over 10MB.

IOS Versions that display compressed image as black: 15.7.7 and 16.4.1 Both of these versions are from an IPad. Seems to work fine on the Iphone with IOS 16.5.1 (c)

Image used
https://www.learningcontainer.com/wp-content/uploads/2020/07/Large-Sample-Image-download-for-Testing.jpg

How I have the options set

var imgOptions = {
    maxSizeMB: 10,
    maxWidthOrHeight: 1920,
    useWebWorker: true,
}

@s3venvials s3venvials changed the title Image Compression On Ipad Safari Browser Results In Black Image Image Compression On Ipad Safari Browser Results In Black Image When Image Is Over 10MB Jul 19, 2023
@Donaldcwl
Copy link
Owner

@s3venvials Can you please access the website https://on690.codesandbox.io/ using your iPad, click on the "test" button, and then share the results with me?

@Pablito203
Copy link

hi, any solution for this issue?

@Russell-Pollari
Copy link

I have also come across this on an Ipad pro. I think the error is due to the Ipad's user agent string being identical to a mac's
see: #222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants