apache / cordova-plugin-camera

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

Android returns HEIF formated images, ignores encodingType #870

Open grumpygary opened 6 months ago

grumpygary commented 6 months 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 6 months 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).