After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142783 - support SVG shapes
support SVG shapes
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: general
CVS head
Other Linux
: Normal enhancement
: 1.1
Assigned To: Dia maintainers
Dia maintainers
: 96824 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-19 16:21 UTC by Marius Andreiana
Modified: 2019-03-20 11:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marius Andreiana 2004-05-19 16:21:29 UTC
Please add support for SVG shapes, which would allow nicer shapes, e.g.
http://www.linuxjournal.com/modules/NS-articles/briefs/7591f2.jpg

Current shapes are quite bad looking (networking). Thanks
Comment 1 Lars Clausen 2004-05-19 22:57:45 UTC
I see those are quite pretty.  However, the associated rendering implementations
are surely not easy.  We have nothing like the SVG gradient in Dia, so none of
the renderers support it.  It is awfully pretty, though.  Methinks it'd be
better off as a post-1.0 effort, as it entails a fair amount of reworking while
not fixing something that's decidedly broken.
Comment 2 Lars Clausen 2004-05-19 22:58:45 UTC
Setting milestone.

Oh, and working patches are likely to be accepted.
Comment 3 Hans Breuer 2006-01-02 18:44:56 UTC
As described here [1] this should be possible already with 0.94
and the support of a librsvg based pixbuf loader - which should
be quite common on current GNOME installations.

[1] http://mail.gnome.org/archives/dia-list/2004-December/msg00014.html
Comment 4 Nguyen Thai Ngoc Duy 2006-01-22 11:01:51 UTC
I could use librsvg to render dia shapes. It renders well but then i lose shape information (librsvg reads xml directly and it currently doesn't provide any way to access svg shapes) so dia shapes can be selected as images only.
Do you have any idea?
Comment 5 Hans Breuer 2006-01-22 12:38:53 UTC
Dia shapes or (programmed) objects are always treated as a unit. They are
the diagram building blocks. One could describe this as "image only".

Depending on the implementation of the shape/object everything is
rendered as sequence of vectors and bitmaps. For svg contained in a 
shape the only thing special is there ability to produce different 
precision bitmaps depending on the requiested resolution.

If I would understand what you mean with "lose shape information" I
may get a better idea of what you think is missing.
Comment 6 Nguyen Thai Ngoc Duy 2006-01-22 15:09:09 UTC
That's information about what lines/curves/paths.. used to draw a shape. Because I pass svg:svg node content to librsvg without parsing it, i don't know what lines/curves/paths used to draw that shape. As a result, I don't know how to implement distance_from function because what I only have is a RsvgHandle which not expose anything inside it. Perhaps i might pass svg content for librsvg to have a better image and reuse parse_svg_node to keep those information.
Comment 7 Hans Breuer 2014-02-01 21:55:25 UTC
*** Bug 96824 has been marked as a duplicate of this bug. ***
Comment 8 GNOME Infrastructure Team 2019-03-20 11:11:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/105.