question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong Orientation on images

See original GitHub issue

BigImageView shows some image with wrong orientation from path; so i have got a solution for this; Add this util https://gist.github.com/9re/1990019 After when you are showing bitmap, use this code ExifUtil.Companion.rotateBitmap(imagePath, bitmap); for showing right orientation

I don’t want to edit this library on my project 👍

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
prashantsaini1commented, Jul 6, 2018

@crzyBrown @Piasy I found a quick and easy fix for this issue. Use below code snippet for loading all images using BigImageView.

BigImageView imageView = (BigImageView) view.findViewById(R.id.image_view);

imageView.showImage(current_image_path);

// use this line to force SSIV lib to auto-rotate the image as per EXIF data.
// It's exactly what's written in SSIV docs here: https://github.com/davemorrissey/subsampling-scale-image-view/wiki/07.-Configuration
imageView.getSSIV().setOrientation(ORIENTATION_USE_EXIF);
0reactions
duruercommented, Mar 26, 2018

Am i need to do something to fix this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What can I do when my images are displayed in a wrong ...
When you go to File > File Info, select Raw Data. The orientation data will be available under Orientation as a number which...
Read more >
How to Fix a Photo Turned Sideways - Lifewire
If your portrait orientation images are displaying sideways on your computer or online, learn how to get them to display correctly.
Read more >
Why Your Photos Don't Always Appear Correctly Rotated
Photos may appear correctly on your computer but appear in the wrong rotation when you upload them to a website. Photos may appear...
Read more >
Fix Sideways or Upside Down Images
Photos taken on smartphones, tablets and some cameras can look great on your device but appear upside down or sideways when uploaded to...
Read more >
Two Ways to Fix Wrong Photo Orientation in Chrome and Edge
Chrome and Edge browser shows wrong photo orientation but Internet ... Here is a root cause and two ways to fix wrong orientation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found