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

Svg parse viewbox #762

Merged
merged 18 commits into from
Jan 2, 2025
Merged

Svg parse viewbox #762

merged 18 commits into from
Jan 2, 2025

Conversation

i-make-robots
Copy link
Contributor

SVG files read by makelangelo software did not take into account the svg viewbox parameter. This caused some SVG files to load as a tiny dot in the center of the paper.

Previously, the workaround was to run something like Tools > Fit Image On Paper.

This PR reads the viewbox field and uses it to calculate the TCM matrix of each SVG Element to display the image at the author's original size and position. This may still be a dot, but more likely it will be enormous. This is preferable because it preserves more fine detail in curves that might be lost to rounding errors.

@i-make-robots i-make-robots merged commit 2c97a3a into master Jan 2, 2025
12 checks passed
@i-make-robots i-make-robots deleted the svg-parse-viewbox- branch January 2, 2025 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant