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 328165 - Patch for better svg image support
Patch for better svg image support
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: general
CVS head
Other Linux
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-22 13:37 UTC by Nguyen Thai Ngoc Duy
Modified: 2019-03-20 11:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
dia_image.c patch (4.60 KB, patch)
2006-01-22 13:38 UTC, Nguyen Thai Ngoc Duy
reviewed Details | Review
Screenshot comparison (132.15 KB, image/png)
2006-01-22 17:55 UTC, Nguyen Thai Ngoc Duy
  Details

Description Nguyen Thai Ngoc Duy 2006-01-22 13:37:16 UTC
While my svg shape effort is not succeeded yet. I have created a useful patch. Currently svg image support can be done via librsvg gdkpixbuf loader. This way is not so good because when you scale an image, it scales as if it's a raster image, not a vector image. This patch uses librsvg directly so that you can scale your images as you wish without losing accuracy.
I didn't patch configure.in (not familiar with that). It should define HAVE_LIBRSVG to enable this patch.
Comment 1 Nguyen Thai Ngoc Duy 2006-01-22 13:38:14 UTC
Created attachment 57846 [details] [review]
dia_image.c patch
Comment 2 Hans Breuer 2006-01-22 15:01:24 UTC
As noted in bug #142783 I think the current svg:image via adapts the
pixbuf size to the current size of required bitmap. I fail to see
how this patch is in any way different to that approach.
Comment 3 Nguyen Thai Ngoc Duy 2006-01-22 17:08:17 UTC
Sorry i didn't make it clear. I meant the image tool in objects/standard/image.c, not svg:image.
Comment 4 Hans Breuer 2006-01-22 17:29:23 UTC
Makes not differnce for me ;) Both facilities are using DiaImage from
lib/dia_image.c. And I've just tested with an SVG via filename
in Properrties : Standard - Image
The reolution of the rendered image is perfectly adapted to the used
resolution.
Comment 5 Nguyen Thai Ngoc Duy 2006-01-22 17:55:40 UTC
Created attachment 57860 [details]
Screenshot comparison

As you see, there are two trashes. The uglier is of course HEAD without patch ;)
Comment 6 Hans Breuer 2006-01-27 21:41:40 UTC
Now I see. All SVG I've tested had a reasonable default size so I 
didn't notice the pixels before. 
That's the workaround I'd propose for the upcoming version 
instead of increasing the #ifdef mess ;)

What I'm wondering is how you are testing the thing without a 
configure.in patch. Or is HAVE_LIBRSVG defined when building
--with-gnome?
Comment 7 Nguyen Thai Ngoc Duy 2006-01-28 02:02:13 UTC
Actually i have patched configure.in but as a mandatory depdendency (together with other gtk depdendencies) and defined HAVE_LIBRSVG myself. Even if i didn't patch configure.in, i could modify some variables in Makefile. Dirty but works :)
Comment 8 GNOME Infrastructure Team 2019-03-20 11:22:49 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/155.