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

Android returns HEIF formated images, ignores encodingType #870

Open
grumpygary opened this issue Nov 10, 2023 · 1 comment
Open

Android returns HEIF formated images, ignores encodingType #870

grumpygary opened this issue Nov 10, 2023 · 1 comment

Comments

@grumpygary
Copy link

grumpygary commented Nov 10, 2023

Bug Report

Problem

Android returns HEIF formatted images (ignores encodingType)

On a

  • Pixel6,
  • Android 13,
  • Cordova 12
  • Camera Plugin v 7.0.0
  • { encodingType : Camera.EncodingType.JPEG }
  • getPicture() returns images in HEIF format (both FILE_URI and DATAURL) in HEIF format
  • HTML IMG cannot load HEIF format images

What is expected to happen?

  • getCamera should respect encodingType JPEG and return JPEG image

What does actually happen?

Images returned in HEIF format, HTML img.src = "" fails (calls error handler with 'unsupported format')

  • same for both mediaTypes

Information

  • Pixel6,
  • Android 13,
  • Cordova 12
  • Camera Plugin v 7.0.0
  • { encodingType : Camera.EncodingType.JPEG }
  • getPicture() returns images in HEIF format (both FILE_URI and DATAURL) in HEIF format
  • HTML IMG cannot load HEIF format images

Command or Code

await

Environment, Platform, Device

Version information

Cordova: 12.0.0
cordova-android: 12.0.1
Camera 7.0.0
CLI build tools
Android 13 (Pixel 6)

Checklist

  • [x ] I searched for existing GitHub issues
  • [x ] I updated all Cordova tooling to most recent version
  • [x ] I included all the necessary information above
@grumpygary
Copy link
Author

Two more things:

These are photos, not videos

Appears to work sometimes for local pictures (on the device), but not when downloading from Google Photos (the user wouldn't know the difference).

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

No branches or pull requests

1 participant