[jira] [Comment Edited] (CB-10064) Camera.getPicture - Wrong FileURI
[ https://issues.apache.org/jira/browse/CB-10064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15035437#comment-15035437 ] graphefruit edited comment on CB-10064 at 12/2/15 8:00 AM: --- Hello, tried my best with logcat, but I'm not that confident with logcat tbh. If you need a deeper logging just let me know. Used: adb -d logcat com.testapp.jira:* > C:\users\desktop\logfile.txt, and searched the crashing parts. Edit: Log is attached. Greetings was (Author: graphefruit): Hello, tried my best with logcat, but I'm not that confident with logcat tbh. If you need a deeper logging just let me know. Used: adb -d logcat com.testapp.jira:* > C:\users\desktop\logfile.txt, and searched the crashing parts. 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 > > > 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] [Comment Edited] (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 edited comment on CB-10064 at 12/1/15 6:11 PM: --- App doesn't crash, camera just not showing up on command. window.error doesn't say something. Is there another place I could have a look for a log? was (Author: graphefruit): 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] [Comment Edited] (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 edited comment on CB-10064 at 12/1/15 6:21 PM: --- 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! was (Author: riknoll): 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] [Comment Edited] (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 edited comment on CB-10064 at 12/1/15 7:50 AM: --- 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) Edit: Camera-Version: cordova-plugin-camera 2.0.1-dev "Camera" Platform: Installed platforms: android 5.0.0 was (Author: graphefruit): 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