-
Notifications
You must be signed in to change notification settings - Fork 15
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
Rotation and flip bug? #11
Comments
@johansatge any idea what is going on? I need fix for this asap and are willing to fix the source code my self if you give me some pointers where to start 👍 |
quick workaround with sharp library if anyone needs it
|
Hi, thanks a lot for reporting this. I reproduce too with the images from the I had a quick look in Note, this issue demonstrates that the existing tests are clearly not covering this module's features correctly. I have opened #12 to try to address this. |
Found the issue (pull request). When flipping the pixels to fix orientations The fix has been pushed in Let's close this. Please feel free to reopen if you still have issues. Thanks again for the report! |
I tried using this lib in nodejs project as I need to add images to PDF document. I had issues with images that had rotation defined in EXIF metadata. So I tested this lib with images from https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto
I used their images that are for testing in their git repo.
I see issues with orientations 5 and 7:
EXIF_Content_A5_xmas.pdf
How images are saved back to file once callback is called:
![image](https://user-images.githubusercontent.com/5610466/48907428-4c0ca100-ee5f-11e8-8879-cb3758cf6cb8.png)
The text was updated successfully, but these errors were encountered: