browser-image-compression
browser-image-compression copied to clipboard
Images are converted to all black after compression on IPad pro
No errors thrown, but image is uploaded as a black square.
I think the root cause is that the user agent string on an iPad pro presents as a Mac.
Since the user agent determines the browser and the max canvas size, this would mean that the library is assuming the wrong maximum canvas size for the Ipad.
I don't have an IPad pro myself to test on, this was reported by a customer. Will continue to do some debugging and update it here.
If you have an iPad pro and can share what the user agent is, that would be very helpful!