Giter VIP home page Giter VIP logo

Comments (10)

loshonja avatar loshonja commented on September 24, 2024 1

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.

victoria168 avatar victoria168 commented on September 24, 2024

Hi, any updates on this issue? Some of my images are fetched in wrong direction too.

from cordova-plugin-photos.

domax avatar domax commented on September 24, 2024

@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.

victoria168 avatar victoria168 commented on September 24, 2024

@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.

domax avatar domax commented on September 24, 2024

@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.

victoria168 avatar victoria168 commented on September 24, 2024

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.

domax avatar domax commented on September 24, 2024

@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.

victoria168 avatar victoria168 commented on September 24, 2024

@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.

bea545lisa avatar bea545lisa commented on September 24, 2024

@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.

domax avatar domax commented on September 24, 2024

@loshonja - please send pull request with your fix, if you don't mind. Thank you in advance

from cordova-plugin-photos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.