-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Exif data lost when correctOrientation is true #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Which platform? What versions (OS, Cordova platform, plugin)? |
Sorry for not posting this information right away! cordova-android 7.0.0 I'm building this via yarn/npm latest version on Windows and Linux. |
Just for completeness, have you tried upgrading to What Android version and device are you testing on? |
Thanks for the info. I updated to 7.1.1 but it made no difference. I tested this on multiple devices with Android 6.0. |
Thanks, if you have any handy you might also test on other Android versions to make sure it does not only affect Android 6.0. My guess: cordova-plugin-camera/src/android/CameraLauncher.java Lines 944 to 1110 in 6899c5e
|
@janpio that would be my guess too. Who can solve this though? |
I think we need to call |
Thanks @AlvaroHerrero that sounds like the right path. Please note that this does not only happen if |
Yes, it also happens when the image is selected from the gallery. |
Is there a roadmap on when this might be fixed? |
Please create a Pull Request that fixes this on this repository, then this can be reviewed, merged and finally released. @AlvaroHerrero 's branch could probably be the base for that. |
The PR is already created. I don´t know if there is something more for me to do. |
Linking to the PR here and to this issue in the PR would be a good thing ;) With a few hundred issues and PRs per day, this is the only way to get the connetions :) Well, then we'll have to wait for more people to review the PR - that actually know about Android and Java etc. Feel free to test the changes @ddsky and leave an "Approve" review on the PR if everything works as expected. |
@janpio, sorry I'm new to this. How do I test the PR? Wouldn't it need to be merged so I can update to the latest version of the plugin in my app to test it? |
You can install the PR branch directly as your plugin: https://github.com/AlvaroHerrero/cordova-plugin-camera/tree/GH-329 ( |
@janpio installing this plugin like so does not seem to work for me
Anything I'm doing wrong? |
No, I gave you the wrong command. Sorry.
should work |
Super, thank you @janpio, that worked. I can hereby confirm that rescaling and keeping the exif data now works properly. What is the process from here, when will this be in the main branch? |
Leave that comment about it working on the PR #331 please. Someone from Apache Cordova will have to decide if this is a useful change, test and review it, then merge it. Then it will be included in the next release, whenever that will happen. |
Thanks, I have done that. |
Includes the pull request apache#331 (apacheGH-329) from the main fork Includes the pull request apache#238 from the main fork
I've just tested the code using the instructions #415 and I still see an issue with exif data getting lost when getting images from the photo library on android device. |
Best open a new issue - otherwise this mgiht get lost here. (Please include a link back to this here of course for context) Thanks. |
The image I retrieve in the success callback has proper exif data if I set the options to:
Once I use
correctOrientation
(or quality, or targetHeight or targetWidth) in the options, the exif data is lost:The text was updated successfully, but these errors were encountered: