browser-image-compression icon indicating copy to clipboard operation
browser-image-compression copied to clipboard

Error when using big files on Safari

Open vsachini opened this issue 3 years ago • 4 comments

Expected Behavior

Compress image;

Current Behavior

When compressing I get an error "Not allowed to load local resource" only when the image is big. Using the same image but cropping it smaller, the compression works fine. I've tried with useWebWorker true and false and got the same results.

It works fine on Chrome and Firefox.

image

vsachini avatar Sep 29 '22 23:09 vsachini

@vsachini Would you mind uploading your large image for us to debug? Thanks.

Donaldcwl avatar Oct 11 '22 01:10 Donaldcwl

Hi @Donaldcwl,

Here's the link to the image I was using: https://unsplash.com/photos/dFmNTi27QLQ/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTZ8fGdvbGQlMjBjb2FzdHxlbnwwfHx8fDE2NjU0NTM0Njg&force=true

This image is a 3.8MB jpg file. It works fine on Macbook Safari 16.0 (17614.1.25.9.10, 17614): 0A0B84B1-C703-4965-87BD-C600CF11864C

Did you upload the wrong image file?

Donaldcwl avatar Oct 11 '22 06:10 Donaldcwl

Here is working fine with a 30MB image.

sayhicoelho avatar Jul 07 '23 18:07 sayhicoelho