parallax/jsPDF

exif orientation is handled incorrectly

Open

#3,795 建立於 2024年11月21日

在 GitHub 查看
 (7 留言) (2 反應) (0 負責人)JavaScript (4,596 fork)batch import
Feature Requesthelp wanted

倉庫指標

Star
 (28,280 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

jspdf handles exif orientation and correctly flips width and height. However, it does not actually rotate the image. Instead it just stretches the unrotated image into its rotated shape.

This issue has been rised twice already but it seems that nobody realized that the image is not correctly rotated

In both issues you can actually see, that albeit the image dimension was rotated, the content was not. I encountered the issue when using svg2pdf.js. You can also see another example in the issue I raised: https://github.com/yWorks/svg2pdf.js/issues/315. The orientation is correct, the content is still unrotated and just stretched

貢獻者指南