Skip to content

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

@mariusvn

Description

@mariusvn

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

  • Load an image from the gallery (i use jpeg) on android
  • Check the exif data

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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions