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.

Hey there!

Should auto rotate fix this? wrong-tiff

I’m currently using the .rotate() method to kinda auto-rotate the images for me (tested also without it)… but I recently stumbled on this picture that it isn’t working as expected (end-user perspective) the output is always the same. I tested uploading this photo in popular social networks to see how they handled it and for example… facebook and gmail handles it ok but some of othersites don’t.

Any idea on how to handle this situation correctly?

ps: I’m currently on sharp v0.19.1.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
igorescobarcommented, Apr 17, 2018

@lovell I think I found the problem. Apparently, the toBuffer() is erasing the EXIF orientation. I added a .withMetadata() before the toBuffer() and it handled it nicely. Is this the expected behaviour?

0reactions
igorescobarcommented, Apr 17, 2018

@lovell I appreciate all the help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image Rotation Issue with Windows 10
Image Rotation Issue with Windows 10. ... This Orientation flag describes how many degrees the camera was rotated when the picture was taken....
Read more >
How to Fix Auto Rotate Not Working on Android
Fix Auto-Rotate Issues by Restarting Your Android Phone. An easy way to fix most issues on your Android phone is to reboot your...
Read more >
How to Fix the Android Screen Rotation Not Working Issue
How to Fix the Android Screen Rotation Not Working Issue · 1. Turn Auto-Rotate On · 2. Restart Your Phone · 3. Check...
Read more >
iOS 16 unexpected rotation behaviour
Is anyone facing any issue with rotation on iOS 16? It seems to introduce some unexpected behaviour. For example, if we're on a...
Read more >
7 ways to fix Android screen rotation not working
If android auto rotate not working occurs on your phone, try these solutions to re-enable the auto-rotate feature on your Android phone.
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