question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document the different EXIF behaviors between iOS and Android camera components

See original GitHub issue
 this.camera.takePictureAsync({base64: true}).then(data => {
                fetch('url', {
                    method: 'POST',
                    headers: {
                        Accept: 'application/json',
                        'Content-Type': 'application/json',
                    },
                    body: JSON.stringify({
                        data: data.base64
                    })
                })

Testing on nexus 5x the picture is uploaded with the correct orientation that it was taken.

Testing on ipad with ios 9.3.5 and iphone x with ios 11 the picture is rotated 90 degrees.

I’ve tested now using the actual image not base64 and same issue. launchCameraAsync() works properly.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
donskander2commented, Nov 13, 2018

plz my brothers how can get IMEI number from image???

0reactions
cruzachcommented, Oct 10, 2019

Hi- Tested this on a snack (forgive me, it’s not super clean code since I repurposed a different snack), and didn’t see this behavior. Also, a similar issue mentioning ImageManipulator stated the same behavior was solved in SDK 31. If you see this bug, please open up a new bug report with a repro, and we’ll look into it 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to view and remove EXIF data on Android and iOS
The Exif data can include information about the date and time when the photo was taken, the smartphone model, and the exposure settings....
Read more >
HEIF Imaging | Android Open Source Project
HEIC-encoded images offer better image quality with smaller file sizes as compared to JPEG files. HEIC images are generated by the camera ......
Read more >
Image upload from iPhone strips exif data - Stack Overflow
So my assumption is that behavior is not browser related, but its the camera app when transferring the photo to another application (not...
Read more >
RNCamera · React Native Camera
It adjusts your camera lens position automatically depending on the pixels ... This prop has a different behaviour for Android and iOS and ......
Read more >
ExifTool by Phil Harvey
A command-line application and Perl library for reading and writing EXIF, GPS, IPTC, XMP, makernotes and other meta information in image, audio and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found