ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

katakeHatashi opened this issue · comments

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

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.