Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: iOS panorama photos selected through CameraPlugin are corrupted #2046

Open
1 of 3 tasks
katakeHatashi opened this issue Feb 29, 2024 · 1 comment
Open
1 of 3 tasks

Comments

@katakeHatashi
Copy link

Capacitor Version

Latest Dependencies:

@capacitor/cli: 5.7.0
@capacitor/core: 5.7.0
@capacitor/android: 5.7.0
@capacitor/ios: 5.7.0

Installed Dependencies:

@capacitor/cli: 5.5.1
@capacitor/core: 5.5.1
@capacitor/android: 5.5.1
@capacitor/ios: 5.5.1

Other API Details

No response

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When trying to select panorama photos from the gallery with the cameraplugin, the photos returned are corrupted. The dimensions are correct, but the photo is all black, and has a size of around 1 mb.

This was observed using Base64-string as the resulttype. Quality was set to 90.

STR;

  • Take a panorama image on iOS
  • Use cameraplugin to select a photo
  • Choose to find photo in the gallery
  • Select the panorama photo

Observe in logging statements that the photo data is corrupted. Decode the base64 encoded photo and observe that it is all black.

Expected Behavior

I expect the plugin to return the base64 encoded representation of the image.

Project Reproduction

https://github.com/katakeHatashi/CapacitorCameraTestApp

Additional Information

No response

@jcesarmobile jcesarmobile transferred this issue from ionic-team/capacitor Feb 29, 2024
@ionitron-bot ionitron-bot bot removed the triage label Feb 29, 2024
@IT-MikeS IT-MikeS added the type: bug A confirmed bug report label Mar 11, 2024
Copy link

ionitron-bot bot commented Mar 11, 2024

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants