Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

The images get rotated on Android 11.0

Open qwaskhaled opened this issue 4 years ago • 7 comments
trafficstars

When I try to capture an image using the camera then compressing it using this SDK I get the image in landscape mode instead of portrait mode

qwaskhaled avatar Apr 07 '21 17:04 qwaskhaled

That is due to camera app. Before giving the image to this library, try rotating the image.

nareshkatta99 avatar Apr 07 '21 17:04 nareshkatta99

That is due to camera app. Before giving the image to this library, try rotating the image.

We are using CameraX in our app and we don't have the issue when we don't the compression SDK. Do you have any explanation for that?

Also, the issue is not presented in all devices.

qwaskhaled avatar Apr 07 '21 17:04 qwaskhaled

This might happen mostly in Samsung devices. Basically that details will be saved to exif data of the image. This library not copying the exif data to compressed one. So better fix that on your side only. Check the exif data of the image once in which the issue is coming.

Check this stackoverflow question

nareshkatta99 avatar Apr 07 '21 22:04 nareshkatta99

This might happen mostly in Samsung devices. Basically that details will be saved to exif data of the image. This library not copying the exif data to compressed one. So better fix that on your side only. Check the exif data of the image once in which the issue is coming.

Check this stackoverflow question

Why does this SDK remove the EXIF data if it's necessary?

qwaskhaled avatar Apr 08 '21 17:04 qwaskhaled

Same issue here. Use CameraX and running in Emulator Pixel API 29

wisnuwiry avatar May 26 '21 03:05 wisnuwiry

getting same issue while take photo with front camera. the image gets rotate after compresssion

imdineshsingh avatar Apr 18 '22 06:04 imdineshsingh

getting the same issue on any device, image gets rotated all the time

harunagic avatar May 29 '23 16:05 harunagic