GithubHelp home page GithubHelp logo

Comments (4)

homm avatar homm commented on June 5, 2024

@ksylvest, do you use any image operations for this preview? I suppose no. This is native image pixels order for this image. To automatically rotate image based on EXIF tags you need to use any of image operations. The simples is -/preview/. But in your case you need relative small copy so you need something like /scale_crop/WxH/center/ where W and H is preview size.

from uploadcare-widget.

homm avatar homm commented on June 5, 2024

This can't be bug in JS SDK, because JS SDK doesn't display images. Browser display images.

Correct orientation for this image is applied by a browser when you load image from address bar. For historical reasons browsers doesn't fix orientation when you open it inside <img> tag. You can check this yourself, just put <img src="https://ucarecdn.com/a6f64b08-fe42-4d9b-bf25-a75121632b07/"> anywhere on your page.

Uploadcare CDN automatically rotates images according EXIF tags if you use any image operation. So all you need is use processed image with any operations rather than original image in your preview.

from uploadcare-widget.

homm avatar homm commented on June 5, 2024

Kevin, as I understand, you are using custom JS code to show this preview. You need to change it to show processed image rather than original. If I'm wrong and this is some of our libraries or example from our site, please let me know, and I'll fix it.

from uploadcare-widget.

ksylvest avatar ksylvest commented on June 5, 2024

@homm No, this is correct. It was definitely a bug on our end (didn't realize that the onChange callback is triggered initially). Thanks for the help!

from uploadcare-widget.

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.