Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001806graphvizOutput Generationpublic2010-01-29 12:562011-04-28 04:03
ReporterJonathan Feinberg 
Assigned Toerg 
PrioritynormalSeveritynormalReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-XP ProOS Version
Summary0001806: SVG output does not preserve alpha (transparency) color component
Description
The SVG renderer ignores the alpha component of an edge's color. It should be respected and emitted as an "opacity" attribute in the resulting SVG.
Steps To Reproduce

graph G {apple -- banana [penwidth=5, color="0000050"];}
Additional Information

[Ole-Morten Duesund]
I have a fix for bug 0001869, my first priority is to get it in to Debian, but obviously it'd be nice so have it in Graphviz proper as well.

This is the bug-report I submitted to the debian BTS.

- Ole-Morten Duesund
<CD>
-------- Original Message --------
Subject: graphviz: core SVG output does not preserve alpha (transparency) color component
Date: Fri, 27 Aug 2010 10:29:54 +0200
From: Ole-Morten Duesund <olemd@glemt.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>

Package: graphviz
Version: 2.20.2-3
Severity: normal


As already reported upstream in in
http://www.graphviz.org/bugs/b1869.html [^] the core SVG renderer for
graphviz ignores the alpha component in RGBA colors (Not only for edges,
but also for fills)

The attached patch turns on support for RGBA in both cases by using
stroke- or fill-opacity as apropriate.

See also attached example input and output with and w/o the patch.

- Ole-Morten Duesund


-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-xen-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages graphviz depends on:
ii libc6 2.7-18lenny4 GNU C Library: Shared libraries
ii libexpat1 2.0.1-4+lenny3 XML parsing C library - runtime li
ii libgd2-xpm 2.0.36~rc1~dfsg-3+lenny1 GD Graphics Library version 2
ii libgraphviz4 2.20.2-3 rich set of graph drawing tools
ii libx11-6 2:1.1.5-2 X11 client-side library
ii libxaw7 2:1.0.4-2 X11 Athena Widget library
ii libxmu6 2:1.0.4-1 X11 miscellaneous utility library
ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library

Versions of packages graphviz recommends:
ii ttf-liberation 1.04.93-1 Free fonts with the same metrics a

Versions of packages graphviz suggests:
pn graphviz-doc <none> (no description available)
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-3 Fonts for the Ghostscript interpre

-- no debconf information
</CD>
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
<CD>
diff --git a/plugin/core/gvrender_core_svg.c b/plugin/core/gvrender_core_svg.c
index 91786e1..3dbfe75 100644
--- a/plugin/core/gvrender_core_svg.c
+++ b/plugin/core/gvrender_core_svg.c
@@ -95,8 +95,11 @@ static void svg_grstyle(GVJ_t * job, int fill
FORMER-ID1869
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (27 Aug 2010)
VERSION     2.27.20100108.0545 (20100108.0545)
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker