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

Bounding box for generated SVG images? #88

Open
thomas-kahn opened this issue Oct 23, 2019 · 0 comments
Open

Bounding box for generated SVG images? #88

thomas-kahn opened this issue Oct 23, 2019 · 0 comments

Comments

@thomas-kahn
Copy link

Hi!

This is a great piece of software!
I'm currently experimenting with it and I have a question regarding the bounding box for generated SVG-files.

If I select a JPEG that is 1920 x 720 pixels in dimensions and use the following code:

primitive -i mvp.jpg -o output.svg -n 75 -m 8 -s 1920

...the background rectangle gets the correct dimensions, but the bounding box for the generated SVG becomes 2152,5 x 952,5 pixels. This happens because the polygons "poke out" from the original bounding box of the image.

primitive-svg

Is there a way to make primitive generate an SVG which respects the original bounding box and doesn't have the polygons poke out of the image?

samccone pushed a commit to samccone/primitive that referenced this issue Dec 18, 2022
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

No branches or pull requests

1 participant