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

Images are converted to all black after compression on IPad pro

Open Russell-Pollari opened this issue 1 year ago • 5 comments

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!

Russell-Pollari avatar Aug 28 '24 13:08 Russell-Pollari