You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have croppie working on mobile iOS 9.2, but I am having some challenges getting what I want...
My viewport is 260x260, square and the boundary is 300x300. When I load an image from on my phone that is, say 960x1260 (the default), it does not scale down and with the zoom all the way left, it is still to close up to make any details out.
You can see the same results on the demo page's upload example.
Digging in with Safari's web inspector, it looks like iOS is giving a "Cross-Origin Resource Sharing policy error" in loadImage so img.onload never fires to resolve the promise and _updatePropertiesFromImage never gets called. If I manually call _updatePropertiesFromImage, the image looks correct.
Checking around the internet, I am thinking that img.setAttribute('crossOrigin', 'anonymous');
should be...
I have croppie working on mobile iOS 9.2, but I am having some challenges getting what I want...
My viewport is 260x260, square and the boundary is 300x300. When I load an image from on my phone that is, say 960x1260 (the default), it does not scale down and with the zoom all the way left, it is still to close up to make any details out.
You can see the same results on the demo page's upload example.
Digging in with Safari's web inspector, it looks like iOS is giving a "Cross-Origin Resource Sharing policy error" in loadImage so img.onload never fires to resolve the promise and _updatePropertiesFromImage never gets called. If I manually call _updatePropertiesFromImage, the image looks correct.
Checking around the internet, I am thinking that
img.setAttribute('crossOrigin', 'anonymous');
should be...
The text was updated successfully, but these errors were encountered: