Comments (10)
Hi, this issue still persists on Android. Here is my conclusion why this problem appears and my solution.
Some Camera apps store captured images with the original orientation (as they were taken). Plugin is fine with it.
Camera apps on some Android devices store images always in landscape (orientation 0), but with appropriate orientation info stored as additional exif metadata. Plugin currently is not taking that information in consideration and always returns landscape images as both thumbnails and images.
Firstly, I decided to find another plugin that handles this problem, but encountered a lot of different problems with them so after few days I found that the best solution is to use this plugin with few changes I made within in:
- photos() gets orientation info from Android MediaStore.Images
- thumbnail() rotates bitmap following the orientation info before returning it
- image() rotates bitmap following the orientation info before returning it
from cordova-plugin-photos.
Hi, any updates on this issue? Some of my images are fetched in wrong direction too.
from cordova-plugin-photos.
@victoria168 : Unfortunately I've lost all my images with wrong orientation :(. I would be very grateful for steps how to make such photos.
from cordova-plugin-photos.
@domax Do you mean how to repeat the step of displaying wrong direction? My step is: call photo() to get all meta data of photos -> call thumbnail() and display in small grid (orientation ok) -> call image() to get raw photo and display it (pictures taken by camera are displayed in wrong orientation). I'm using iPhong6 IOS 10.3.3 for testing.
from cordova-plugin-photos.
@victoria168 No )) - I know how to get existing images from device (since it's me who wrote this plugin).
I mean steps how to take (shoot) photos in a way that they will have wrong orientation. I had such photos in my iPhone - I just discovered that they are fetched from device in wrong orientation. But I have no idea why they have it wrong, and how it was happen.
I've lost all such photos, so I have to make them again to fix this issue.
from cordova-plugin-photos.
Hi, do you encounter this issue in Android? I find in Android album a property called 'Orientation'. Without it all images get from Photos.photos() are in wrong orientation. Is it possible to add this property to your plugin? Thanks.
Android version: 6.0.1
from cordova-plugin-photos.
@victoria168 : sure it's possible. Though, I never observed the wrong orientations on my Android devices yet.
I have no device with 6th Android - I'll try to reproduce it in emulator, but I cannot provide any estimations for now, unfortunately.
from cordova-plugin-photos.
@domax thanks so much. Have you added orientation params yet? Please let me know so that I can test in my Android v6 device.
from cordova-plugin-photos.
@domax on Android image orientation is yet not included and some photos therefore have wrong orientation. Isn't it possible to add orientation parameter? Thanks.
from cordova-plugin-photos.
@loshonja - please send pull request with your fix, if you don't mind. Thank you in advance
from cordova-plugin-photos.
Related Issues (20)
- App is crashed on photos() call that returns huge amount of records
- Almost none of the images honour the dimension setting HOT 4
- Limit on Get photo assets HOT 13
- image() return base64 or dataURI HOT 4
- Phonegap Build error with Android HOT 1
- Wrong orientation in Android HOT 2
- Get access to URI ? HOT 2
- Get native paths of my images HOT 1
- Ask for contributing HOT 3
- collections() return Error: Invalid column DISTINCT bucket_id only on Android 10 HOT 4
- Compilation error on Android HOT 7
- Impossible to get the image HOT 2
- Does not work with API 29
- Add getting image as file URL HOT 3
- Some assets don't return thumbnails on iOS
- Real size of thumbnails is lesser than requested on iOS
- Display ArrayBuffer in canvas looks scrambled HOT 3
- Add timestamp in millis into Photos.photos() output
- Add optioning of fetching delay between photos() bundles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-photos.