apache / cordova-plugin-camera

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

Exif data lost if picture retrieved from gallery in DATA_URL on android #867

Open mariusvn opened 6 months ago

mariusvn commented 6 months ago

Bug Report

Problem

What is expected to happen?

Have the base64 of the picture with all the original jpeg exif metadata in a data url

What does actually happen?

The given picture in the data url never see its exif data back

Information

Also, I looked at the code, and there should be a loading of exif data in android/CameraLauncher.java:1300 in the processPicture method or at least before the execution of processPicture on android/CameraLauncher.java:781.

Command or Code

// This is approximate since i work on angular with @awesome-cordova-plugins/camera
getPicture({
        quality: 50,
        destinationType: DestinationType.DATA_URL,
        encodingType: EncodingType.JPEG,
        mediaType: MediaType.PICTURE,
        targetHeight: 720,
        targetWidth: 1280,
        sourceType: PictureSourceType.PHOTOLIBRARY,
    });

Environment, Platform, Device

Galaxy Tab S8, Android 13

Version information

Ionic 5, Android 13, Editing on windows, Angular 10

Checklist