-
-
Notifications
You must be signed in to change notification settings - Fork 0
bug: editPhoto failed #12
Comments
Which platform do you use? |
This error also popped up on android studio's logcat
|
Thanks, this is the issue. Please use an absolute path. You can use the 'getUri' method from the Capacitor Filesystem plugin for that: https://capacitorjs.com/docs/apis/filesystem#geturi I need to improve the documentation. |
I am now getting this error (and the URI I used is file:///data/user/0/com.vaggelis.reacttests/files/logo512.png provided by Filesystem.getUri)
|
Please paste your |
I'm sorry for the late reply. Here is my AndroidManifest.xml
|
Mhm everything seems fine. |
Finally made it work I was using this before:
For some reason the path it returned wasn't correct so to be sure i've tried to write the file again to the documents folder using this:
The result of writeFile has the URI of the image and it worked with PhotoEditor.editPhoto Would be nice if I could use a base64 string instead of a path and also get a base64 string result after I edit the photo |
I am glad it works now! In this case i am closing this issue now.
Great idea! Feel free to create a feature request for this. |
Plugin version:
"@capawesome/capacitor-photo-editor": "^0.1.0"
Platform(s):
Android
Current behavior:
It throws an error and it does nothing
Expected behavior:
I don't know what the edit photo does because there is no video or photo of its behavior but i guess a photo editor should open
Steps to reproduce:
I used the code snippet from the readme file
Related code:
Other information:
Capacitor doctor:
The text was updated successfully, but these errors were encountered: