-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Image with exif orientation tag #2316
Comments
EXIF metadata is not supported by pdfkit. (related pdfkit issue foliojs/pdfkit#626) |
With pdfmake version 0.2.15 which updated pdfkit to 0.15.1, the logic of I have tested this with the landscape example images of https://github.com/ianare/exif-samples/tree/master/jpg/orientation. pdfmake@0.2.7 pdfmake@0.2.15 Nevertheless, the new version drastically improves EXIF support already! |
pdkit returns the original dimensions of image and in rendering swap dimensions according to the orientation. pdfmake ignores this behavior. Fixed by commit 9052559. |
Hi everybody,
It seems that PdfMake is ignoring the exif metadata tag "orientation". I dont know if its a bug or a feature not implemented.
I tested with two image with different "orientation" tag. One set to "Horizontal normal" and other with "90° CW". Both images are displayed in landscape style.
I made a sandbox project to reproduce :
https://codesandbox.io/s/pdfmake-forked-nzdm6?file=/src/index.js
Thanks for your reply and sorry for my english
The text was updated successfully, but these errors were encountered: