-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Specifically with 1 card (Werewolf), there is an issue with the image rotation in the PDF. If you preview images like this, it looks okay.
However, if you generate the PDF, it looks like this.
But when using only the Werewolf card, it looks okay.
...but only sometimes 😕
I have no idea why sometimes it's rotated and sometimes it's not. However, there is one thing about the actual image data itself. If you download https://accio.cards/cardimages/Werewolf.png and https://accio.cards/cardimages/TheShriekingShack.png (both cards from the same set) and upload them onto this website: https://jimpl.com/, then you will notice that The Shrieking Shack has the Orientation: Horizontal (normal) property and Werewolf does not. I think this may be the root cause.
As for generating the PDF, all I'm doing is using the jsPDF addImage function, and that's all. It works for all the other images as far as I can tell, but not this one. Maybe I need to add a special exception for this image, or maybe I need to ask the Accio maintainers to fix the image metadata.



