[SRU] scaling is wrong in SVG output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
graphviz (Debian) |
New
|
Unknown
|
|||
graphviz (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Won't Fix
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
graphivz output is incorrect for SVG output when the "size" attribute is set, as it implicitly is in several circumstances.
[ Test Plan ]
* sudo apt install imagemagick graphviz
* Grab fst.dot attached to this bug
* dot -Tpng fst.dot | display png:-
* Observe correct scaling
* dot -Tsvg fst.dot | display svg:-
* Observe incorrect cropping of output
* Enable proposed (https:/
* Upgrade graphviz to version from proposed
* dot -Tsvg fst.dot | display svg:-
* Ensure output is not cropped
[ Regression Potential ]
Low; the patched applied is from upstream and has been part of the official sources for many years now (Debian and Ubuntu are rather behind on their versions of graphviz, but it looks like this may be corrected in the oracular cycle). Nonetheless, the patch was first applied to our current version, is minimal in nature, and fixes the issue in tests without impacting other output.
There is a very small possibility someone may be relying on the incorrect truncation of SVG output, but this is almost certainly outweighed by the number of users impacted by incorrect truncation of output in, e.g. jupyter notebooks, and by the consistency of having the same (lack of) cropping in different output formats.
[ Original Description ]
SVG output brutally truncates large (and even not so large) graphs when the "size" attribute is set.
This was fixed *two years ago* upstream. Any chance that we might get more recent graphviz packages in Ubuntu at some point? Failing that, it is quite easy to fix this bug.
See https:/
The fix is very simple, it seems: https:/
Definitely present in 22.04, still present in the Lunar package (graphviz_
Related branches
- Dave Jones (community): Needs Fixing
- git-ubuntu import: Pending requested
-
Diff: 72 lines (+41/-0) (has conflicts)3 files modifieddebian/changelog (+20/-0)
debian/patches/series (+5/-0)
debian/patches/svg-scaling.patch (+16/-0)
summary: |
- scaling is wrong in SVG output + [SRU] scaling is wrong in SVG output |
description: | updated |
Changed in graphviz (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in graphviz (Ubuntu Jammy): | |
status: | Confirmed → In Progress |
Changed in graphviz (Ubuntu Mantic): | |
status: | Confirmed → In Progress |
Changed in graphviz (Ubuntu Noble): | |
status: | Confirmed → In Progress |
Changed in graphviz (Debian): | |
status: | Unknown → New |
fix here: https:/ /code.launchpad .net/~dhuggins/ ubuntu/ +source/ graphviz/ +git/graphviz/ +ref/dhd/ fix_2015017_ 2015023