calvintwr / blitz-hermite-resize

Fast, versatile and powerful client-side browser JS image resizing that amazes. Modern -- async/await/promise compatible. Does not freeze windows during resizing.
Other
79 stars 8 forks source link

_dataToCanvas: Canvas area exceeds the maximum limit (width * height > 16777216). #6

Open blackspike opened 8 months ago

blackspike commented 8 months ago

Hi! I get the following error with blitz in iOS 17 safari 17 when I use an image from my iPhone 15 camera

_dataToCanvas: Canvas area exceeds the maximum limit (width * height > 16777216)

This 5712 x 4284 demo photo throws the error straight from the camera https://grater.app/test-photos/bad.HEIC

whereas this 4032 x 3024 one works fine https://grater.app/test-photos/ok.HEIC

Any ideas on how to mitigate this error? Thanks a lot!