apache / cordova-plugin-camera

Apache Cordova Plugin camera
https://cordova.apache.org/
Apache License 2.0
966 stars 1.55k forks source link

Android returns HEIF formated images, ignores encodingType #870

Open grumpygary opened 1 year ago

grumpygary commented 1 year ago

Bug Report

Problem

Android returns HEIF formatted images (ignores encodingType)

On a

What is expected to happen?

What does actually happen?

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

Information

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

grumpygary commented 1 year ago

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).