Giter VIP home page Giter VIP logo

Comments (5)

radujica avatar radujica commented on July 19, 2024 1

That's exactly what it was. After setting Camera.Parameters.setRotation(90) in the custom camera, it rotated in the crop activity. Thanks for the help!

from android-image-cropper.

ArthurHub avatar ArthurHub commented on July 19, 2024

setImageUriAsync(uri) is async and resets its state when the image is loaded due to exif data.
you should subscribe to complete event using setOnSetImageUriCompleteListener(listener) method and execute the rotate there (also you will know if load was successful).
Hope it make sense.

from android-image-cropper.

radujica avatar radujica commented on July 19, 2024

it doesn't seem to help. I inserted rotateImage inside the setOnSetImageUriCompleteListener and it's still not rotated. Do I have to refresh somehow? error is null inside the listener

from android-image-cropper.

ArthurHub avatar ArthurHub commented on July 19, 2024

I don't know what to tell you.. I just added view.rotateImage(90) to MainFragment.onSetImageUriComplete line 185 in the sample app and it just works...

from android-image-cropper.

radujica avatar radujica commented on July 19, 2024

Quite odd. Guess it's because the custom camera activity I made does not save any exif info so far

from android-image-cropper.

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.