wymsee / cordova-imagePicker

Cordova Plugin For Multiple Image Selection
MIT License
407 stars 854 forks source link

IOS 10: Operations is insecure #192

Open benlooi opened 7 years ago

benlooi commented 7 years ago

Hi all! Need help. I am using ImagePicker to get an image from IOS 10 photo library. I am able to select the image, and I need to crop it using another library $jrCrop. The problem is ImagePicker is reading the results[0] as a path to the file, "file:///var/mobile/Containers/Data/Application/9E9…5D5F-4E40-975E-A895E979EC4B/tmp/cdv_photo_002.jpg", and I am unable to pass this successfully to $jrCrop. The error message in Safari (Debug) console is "The operations is insecure". How do I read this file as DataURL and pass it to $jrCrop?