Open rafavalerio opened 1 year ago
@rafavalerio There is a limit on memory usage in browsers which may be the reason for the black image outputs you are experiencing. I suggest trying to run the compression process sequentially instead of in parallel to determine if the issue persists.
If it works fine, we may need to find a way to restrict concurrent compression in order to prevent this problem from occurring.
Found a similar issue on Ipad pro (images turning all black) see: https://github.com/Donaldcwl/browser-image-compression/issues/222
Overview
I've seen mentions of this issue earlier and apparently, it has been fixed on
v2.0.2
. But even after the update, I am still facing this issue on iOS (16.4.1
, iPhone 12 and 13, Safari and Chrome) only (Android, or other desktop browsers are fine).The issue happens when trying to perform a bulk image upload (Currently using AntDesign - Upload for that).
Single images or a smaller number (up to 10) works fine, but any higher than that will result in black images.
These are the compression options I am using at the moment:
Can it be related to running the compression simultaneously? Any idea why it works on Android (even on older devices like Pixel 5), but fails on an iPhone 12?