cloudinary / cloudinary/cloudinary_android

exif tags not honored when applying image preprocessing chain

Open
#99 7 comments 0 reactions 1 assignee Claimed by @nitzanj View on GitHub
bug
Dominant language
Java
Stars
68
Forks
60
PR merge metrics
No merged PRs in 30d

Description

It looks like `BitmapDecoder` used in `ImageProcessChain` does not rotate images with the included exif orientation tags on a photo. Not including any preprocessing chains for photo uploads resolves this issue.

A possible solution -> applying `Matrix#postRotate()` with a newly created bitmap during bitmap decoding (https://github.com/cloudinary/cloudinary_android/blob/master/lib/src/main/java/com/cloudinary/android/preprocess/BitmapDecoder.java#L82).

Device info:
Android 9
Pixel 2 emulator

SDK info:
1.26.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.