[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15157815#comment-15157815 ] Richard B Knoll commented on CB-10064: -- Sorry for the (very) long response time; I've been working on other Cordova things. I can't reproduce this with those camera options. I have a hunch this is device specific, so I'm going to drop the priority on this JIRA. If someone else has an HTC One M8 it would be great if you could try and reproduce this. > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android, triaged > Attachments: Picture_taken_crop_finish.png, > Picture_taken_crop_start.png, Picture_taken_edit_start.png, log_error.txt, > two_images.png > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15041491#comment-15041491 ] graphefruit commented on CB-10064: -- Hi, tried it with a complete new project: Camera shows up after security question. (The other with the .XML I try this weekend) Camera-Edit works fine now (first run i had a crash after editing and saving image?? - couldn't reproduce it till now) But one problem remains: If I edit the photo, I get now the edited picture URL. But in my folder are now 2 saved images both edited. -> See attachment. I think there should just be one image, or two (edited + source - in this case 2 URLS would be needed). As longer the app runs, as more garbage pictures are left there. Greetings > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > Attachments: log_error.txt, two_images.png > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15042242#comment-15042242 ] Richard B Knoll commented on CB-10064: -- Thanks for the update! I have a few questions: * Could you post the exact javascript you are using to take the picture? I need the camera options that are getting passed in and it doesn't sound like you are using the ones listed in the issue. * What physical device are you using? (Some devices come with camera applications that save extra photos whether you want them to or not) * When you edit the photo, what app are you using to do it? Can you post a screenshot of the image edit screen that comes up? > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > Attachments: log_error.txt, two_images.png > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15036416#comment-15036416 ] Richard B Knoll commented on CB-10064: -- Ahhh, figured it out. If you request the CAMERA permission in your AndroidManifest.xml, then sending the camera intent causes a security exception (see [this stackoverflow thread|http://stackoverflow.com/questions/32789027/android-m-camera-intent-permission-bug]). I can reproduce that crash. We do not declare that permission in the manifest for the camera plugin, so I'm guessing you either have a third party plugin that is inserting it or you added it to your manifest yourself at some point. Either way, our camera plugin should probably handle that situation! I'll create a separate JIRA for that issue. Thanks for bringing it to our attention! As for the issue at hand, you should be able to try it out with an empty project with nothing but the camera plugin added and your js code above. Check your AndroidManifest.xml to make sure it doesn't have a line like this: {{}}. You can find the manifest file at {{platforms\android\AndroidManifest.xml}} > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > Attachments: log_error.txt > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15036390#comment-15036390 ] Richard B Knoll commented on CB-10064: -- Also, FYI your log is publicly downloadable. Wasn't sure if you were trying to restrict it with your comment or not. > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > Attachments: log_error.txt > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15036458#comment-15036458 ] ASF GitHub Bot commented on CB-10064: - Github user riknoll commented on the pull request: https://github.com/apache/cordova-plugin-camera/pull/142#issuecomment-161410396 Thanks for submitting a PR! I actually just ran into this issue while working on [another issue in JIRA](https://issues.apache.org/jira/browse/CB-10064). After doing some research into this problem, I found that it actually only comes up if you have the CAMERA permission declared in your manifest (I have no idea what the reasoning behind this behavior is). We don't declare that permission, but third party plugins can insert entries into the manifest and so we still need to handle the case. Anyway, the question is, should we always request the camera permission or should we check the manifest for the permission declaration first? I'm leaning towards checking the manifest (we shouldn't get extra permissions for no reason). @infil00p thoughts on that? > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > Attachments: log_error.txt > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15036386#comment-15036386 ] Richard B Knoll commented on CB-10064: -- Alright, from the log it looks like there is a security exception for not requesting the camera permission. It is true that we don't request that permission (and camera is one of the "dangerous" permissions), but I also didn't think we had to. I also saw a PR open for this within the last couple days Looking into it further > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > Attachments: log_error.txt > > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034127#comment-15034127 ] Richard B Knoll commented on CB-10064: -- What version of android is the device running? > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034187#comment-15034187 ] graphefruit commented on CB-10064: -- Android 6.0 Build Number: MRA58K.H6 > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034236#comment-15034236 ] graphefruit commented on CB-10064: -- App doesn't crash, camera just not showing up on commanding. window.error doesn't say something. Is there another place I could have a look for a log? > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034203#comment-15034203 ] Richard B Knoll commented on CB-10064: -- That's interesting. I'd love to see a stack trace of that crash if you have one. Does the camera app show up at all? > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034262#comment-15034262 ] Richard B Knoll commented on CB-10064: -- Sure, run `adb logcat` in a terminal/command prompt with the device/emulator running and look for a stack trace when you reproduce the bug. Before you do that, reinstall the app (that should hopefully get the crash to come back). Post the log here (just what comes up while your app is running, I don't need the whole thing). If you could post the relevant JS as well, I'd appreciate it. Thanks for working on this! > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15034320#comment-15034320 ] graphefruit commented on CB-10064: -- Alright, I give it a try tomorrow. Can't test it earlier sorry. > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15032277#comment-15032277 ] Richard B Knoll commented on CB-10064: -- Thanks for reporting this bug! I believe that I actually fixed this behavior in master a couple of weeks ago with [this pull request|https://github.com/apache/cordova-plugin-camera/pull/137] for CB-5479. Could you try updating your plugin to the {{master}} version by cloning the repo and testing it out? > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: camera, edit > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15033276#comment-15033276 ] graphefruit commented on CB-10064: -- Can't test it. Updated my project to android-5.0 after the new (unstable-master) just works with >= 5.0. If I try to start the camera, the OS asks me for camera-privilege which I approved -> app crash. Next start, no more camera-privilege question, but camera don't show up (No JS-Error occurrence) > Camera.getPicture - Wrong FileURI > - > > Key: CB-10064 > URL: https://issues.apache.org/jira/browse/CB-10064 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.3.3 > Environment: Android 6.0 >Reporter: graphefruit > Labels: android > > Hello! > if you take a picture with cordova and need to edit the picture, you won't > get the edited image-file-uri if the quality is set to "100". > {code:javascript} > navigator.camera.getPicture(onSuccess, onFail, { > quality: 100, > destinationType: Camera.PictureSourceType.CAMERA, > sourceType: sourceTypeCamera.DestinationType.NATIVE_URI > allowEdit: true, > encodingType: Camera.EncodingType.PNG, > mediaType: window.Camera.MediaType.PICTURE, > targetWidth: 0, > targetHeight: 0, > popoverOptions: CameraPopoverOptions, > saveToPhotoAlbum: false > }); > {code} > If the quality is set to 99 the original image will be overwritten with the > edited image content and another image is created and saved with the edited > image content. > At least you can then use the edited image. > Suggestion: > Pass two parameters > {code:javascript} > function onSuccess(_originalURI,_editedURI) > { > } > {code} > Edit 2: > The SourceType: NATIVE_URI and FILE_URI are affected > Thanks & Greetings > Graphefruit -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org