Skip to content

Image rotation issue #3

@nullromo

Description

@nullromo

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.

Image

However, if you generate the PDF, it looks like this.

Image

But when using only the Werewolf card, it looks okay.

Image

...but only sometimes 😕

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions