** Description changed: + [ 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://wiki.ubuntu.com/Testing/EnableProposed) + * 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://gitlab.com/graphviz/graphviz/-/issues/1605 The fix is very simple, it seems: https://gitlab.com/graphviz/graphviz/-/commit/a5606d101af1cc949908a6f0bc19caaa4eb31159 Definitely present in 22.04, still present in the Lunar package (graphviz_2.42.2-7build3)
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2015017 Title: [SRU] scaling is wrong in SVG output To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/graphviz/+bug/2015017/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
