-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
Exporting with auto bounds doesn't account for outer stroke #2129
Comments
Duplicate of #2113. |
github-project-automation
bot
moved this from Short-Term
to Completed This Milestone
in Task Board
Dec 7, 2024
I'm actually going to make #2113 a duplicate of this, even though this is more recent, because it more clearly describes the problem. |
Keavon
added
Feature
New feature or request
Rust
Paper Cut
A small UX annoyance we should strive to improve
labels
Dec 24, 2024
Keavon
changed the title
SVG export bounding box incorrect.
SVG export bounding box doesn't account for outer stroke
Dec 24, 2024
Apologies for the duplicate, I tried looking for SVG errors, not realizing the issue applied to other formats too (as described by #2113) It's really not that big of a deal for me, but I figured you could decide if it's worth fixing. |
Keavon
changed the title
SVG export bounding box doesn't account for outer stroke
Exporting with auto bounds doesn't account for outer stroke
Dec 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When exporting an SVG with transperancy, the bounding box doesn't seem to include the outer stroke weight. So if you export a square with a stroke width of 8 px, the exported image will have the outer stroke cut off.
This is also the case in the dev deployment.
The exported svg: (notice how the borders are visibly cut off)
The project file (renamed to have
.txt
so github lets me upload it):Spelling bee cell.graphite.txt
Changing the SVG
viewbox
,width
,height
, and remoxing the transformation to restore the boundaries to those present in the project (1000px^2 for me) fixed the issue completely.The text was updated successfully, but these errors were encountered: