Skip to content
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 elements with different width/height attributes than the source image are stretched #108

Open
HackbrettXXX opened this issue Sep 4, 2019 · 4 comments

Comments

@HackbrettXXX
Copy link
Member

HackbrettXXX commented Sep 4, 2019

This is probably due to a missing viewBox transformation. However, reading the widths from bitmap images is probably not trivial.

@HackbrettXXX
Copy link
Member Author

Repro

@LanderBeeuwsaert
Copy link

We're running into this issue as well.
A start of a solution to toe svg2pdf code seems to be:
image
which I took from:
parallax/jsPDF#3401

@HackbrettXXX
Copy link
Member Author

Good idea. I would happily merge a PR.

@LanderBeeuwsaert
Copy link

@HackbrettXXX we intend to put this (and in larger view, html => svg => pdf) up as a student project. But that will only start in september 2024. At that moment we hope for the student to solve this and deliver a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants