question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Image is lost if choosing not to edit for Camera plugin on Android

See original GitHub issue

Bug Report

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 2.0.1

@capacitor/core: 2.0.1

@capacitor/android: 2.0.1

@capacitor/electron: 2.0.1

@capacitor/ios: 2.0.1

Installed Dependencies:

@capacitor/electron not installed

@capacitor/cli 2.0.0

@capacitor/core 2.0.0

@capacitor/ios 2.0.0

@capacitor/android 2.0.0

[success] Android looking great! 👌 Found 7 Capacitor plugins for ios: com-darryncampbell-cordova-plugin-intent (2.0.0) cordova-admob-plus (0.35.0) cordova-plugin-appavailability (0.4.2) cordova-plugin-file (6.0.2) cordova-plugin-file-transfer (1.7.1) [success] iOS looking great! 👌

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

Original Image is not returned when you select a phone from gallery and continue without editing it.

Note: This is almost exactly the same issue as #2020. I see it is working totally fine in case of taking a picture but not in case of selecting an image from gallery.

Expected Behavior

If no edit is performed after selecting an image from gallery, original image should be returned

Sample Code or Sample Application Repo

const image = await Camera.getPhoto({
	quality: 90,
         allowEditing: true,
	resultType: CameraResultType.Uri,
});

console.log(image.webPath); // nothing is returned

Reproduction Steps

Call Camera Plugin code Camera.getPhoto(..) choose option (Select an Image from Gallery) when edit screen pops up, click the X without making any edits No image is returned

Other Technical Details

npm --version output: 6.4.1

node --version output: v10.10.0

pod --version output (iOS issues only):

Other Information

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jcesarmobilecommented, Aug 26, 2021

this has been fixed in @capacitor/camera, would be available on next release.

3reactions
HelloDavideDeSimonecommented, Jul 19, 2021

I confirm this issue still exist on capacitor 3.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does the preview image not show in Android when using ...
I'm building an app in Ionic Framework and I'm having a problem with the preview image in Android. It just doesn't show. I...
Read more >
Camera Plugin - OutSystems 11 Documentation
Use the Camera Plugin to let users take pictures with their mobile device. This plugin works with both native mobile apps and progressive ......
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Use your camera & microphone - Google Chrome Help
Change a site's camera & microphone permissions · Open Chrome Chrome . · At the top right, click More More and then Settings....
Read more >
Known issues in Photoshop - Adobe Support
When creating a new document with an image copied to your clipboard, the New Document dialog doesn't recognize the correct image dimensions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found