Croppie icon indicating copy to clipboard operation
Croppie copied to clipboard

Croppie freezes Android WebView with larger viewports

Open ice8lue opened this issue 8 years ago • 6 comments

I'm using Croppie in a hybrid mobile app (vanilla JS). When initializing Croppie with a viewport set to above 600x600px (say fullscreen on a smartphone), the view freezes for about two seconds. No css animations or other render steps are fired. It works flawlessly afterwards.

ice8lue avatar Aug 02 '16 13:08 ice8lue

Wow - I dropped the ball on this one. Any update on this?

thedustinsmith avatar Sep 08 '16 14:09 thedustinsmith

Well, this is still happening... No problems if the viewport is small enough, but at higher sizes, it's freezing.

ice8lue avatar Sep 08 '16 14:09 ice8lue

Does this only happen with the WebView component? I'm messing around with a large croppie (> 600x600) in chrome and I don't see any freezing.

When does the freezing happen? When you bind the image?

thedustinsmith avatar Sep 08 '16 15:09 thedustinsmith

Don't know if this issue is resolved, but I'm currently facing same issue

unicuscampus avatar Jun 30 '20 21:06 unicuscampus

the croppie canvas does not even show, immediately I select an image from the device

unicuscampus avatar Jul 01 '20 05:07 unicuscampus

We fixed the bug back then by working on a downscaled image (using a service like Cloudinary, for example) and adjusting the crop results by the scaling ratio afterwards. That seemed to do the trick.

ice8lue avatar Jul 01 '20 14:07 ice8lue