-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Images in PDFDoc are rotated #626
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
Comments
I am also having this issue. When I open the image on my PC it is showing in Portrait. |
I have solved the issue with the rotated images outside of pdfkit. |
@virusakos is there any permanent solution for this issue ? ..because we have dynamic image so it can be of multiple type(image/*) |
@JayeshLadumor97 I am sorry but I don't know. |
We are still having the issue. I just investigated and I think this is related to EXIF information in the images. Image that gets rotated in pdfkit: Image that does not get rotated: I didn't have a look at the source code yet, are we using pdf.js internally? If so - it might be fixed with this release here: mozilla/pdf.js#12027 |
any fix for this ? |
i think we really have to fix this bug |
Hello I see this is still open, is there any fix for this or is it still being worked on? Thank you! |
Should be fixed. See https://github.com/foliojs/pdfkit/blob/master/docs/images.md ignoreOrientation |
output-pdf.pdf

Hi! I've been dealing with this for a couple days already, I looked thru all issues and history in this repository but didn't find anyone else having the same issue.
So...All I do is to add an image to a PDFDoc that I am creating. This image is on portrait mode (which means that there is a field in
EXIF
that indicates that image is Rotated 90 degrees. However, when I look to the generated PDF the image shows landscape.Any thoughts or ideas? Problem surely is that I am doing something wrong because haven't seen anyone else having that issue.
This is a taste of my code:
Find attached the original image and the generated pdf
The text was updated successfully, but these errors were encountered: