View Issue Details

IDProjectCategoryView StatusLast Update
0035038mantisbtuipublic2024-12-26 08:52
Reporterraspopov Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.27.0 
Target Version2.28.0Fixed in Version2.28.0 
Summary0035038: Text on the relationship and workflow graphs are rendered cropped
Description

This is due to the limitations of the png image format, but the Graphviz library supports svg, so it would be a good idea to switch to svg.

Happens mainly on high dpi monitors

TagsNo tags attached.

Relationships

related to 0035039 closeddregad The GraphViz tool is almost impossible to customise for Windows 

Activities

raspopov

raspopov

2024-11-26 13:20

reporter   ~0069493

PR: https://github.com/mantisbt/mantisbt/pull/2051

dregad

dregad

2024-11-27 07:34

developer   ~0069495

As mentioned in the PR:

GraphViz generates an invalid SVG on Ubuntu < 24.10 due to a malformed XML error, the & in the nodes' URL attribute is not encoded properly.

This is a known issue in the library that has actually been fixed in release 2.42.4, but on current LTS versions, the apt package manager still installs 2.42.2 which still has the bug.

To avoid introducing a regression for all users running on Ubuntu < 24.10, forcing them to manually install a newer version of GraphViz, this is put on hold until the next Ubuntu LTS including the fix (26.04) is released.

raspopov

raspopov

2024-11-28 13:12

reporter   ~0069510

In refreshed PR I decided instead of setting the option to 'svg' to make it possible to set the option to 'svg'.

Maybe we should add Graphviz version diagnostics to the administrative checks with a hint that it's safe to use ‘svg’ or asking to update the Graphviz version...

raspopov

raspopov

2024-11-30 00:10

reporter   ~0069514

I decided to add a Graphviz version test and two diagnostics to the PR: for using SVG format for an unsupported version (FAIL) and for not using SVG format for a supported version (WARN).

Related Changesets

MantisBT: master 7c45c3f5

2024-12-26 08:51

dregad


Details Diff
Allow changing format of Graphviz-generated images

The format defaults to PNG to maintain backwards compatibility, but it
can be set to any Graphivz-supported format; SVG offers better quality
and avoids text begin cropped, but it is not supported by older versions
of Graphviz.

Fixes 0035038, https://github.com/mantisbt/mantisbt/pull/2051
Affected Issues
0035038
mod - admin/check/check_display_inc.php Diff File
mod - config_defaults_inc.php Diff File
mod - core/relationship_graph_api.php Diff File
mod - docbook/Admin_Guide/en-US/config/relationship.xml Diff File
mod - workflow_graph_img.php Diff File