Skip to content

Apply EXIF orientation if has #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Quanghihicoder
Copy link

Change:

Some image editing software updates only the EXIF orientation metadata instead of physically rotating the image. Most image viewers interpret this metadata and display the image accordingly.

However, JavaScript image processing libraries typically do not apply EXIF orientation by default. This can lead to incorrect rendering or orientation errors.

To address this, the orientation should be applied manually (if present) before passing the image into raw().

Related post:

https://stackoverflow.com/questions/74948926/wrong-image-width-and-height-when-read-it-with-c-sharp

Demo video:

https://youtu.be/npjw7FiSgng

@Quanghihicoder
Copy link
Author

sample_4

You can use this image to recreate the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant