! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Cannot display svg with linked images
Status:
RESOLVED: MOVED
Product:
Ristretto
Component:
Application

Comments

Description istoica 2018-02-03 16:01:12 CET
Created attachment 7575 
Contains an SVG file with a linked image relative to itself(to the svg file)

Just this, tried in other programs:

- Inkscape 0.92+ is able to display it
- Chrome is able to display it
- Firefox is able to display it

The bug also affects Thunar, as it is unable to display SVGs containing linked images.
Embedding images as base64 strings is not a solution, it makes the SVG explode and it works only when one can control SVG creation, which is not the case for most users.
What do you think ?
Comment 1 Igor editbugs 2018-07-03 16:56:12 CEST
Hi, and thanks for the report!

It seems that GdkPixbufLoader that is used for loading images is not capable of handling "image/svg+xml" MIME types.
I found out that other image viewers, such as xviewer (https://github.com/linuxmint/xviewer/blob/724900eb4a57f77206da1744d58bb0c4208da0ef/src/xviewer-image.c#L1021) and eog, are using libsrvg for "image/svg+xml" and "image/svg+xml-compressed" types. I will look into adding support for libxrvg into ristretto.
Comment 2 Vinzenz Vietzke 2019-05-07 13:25:41 CEST
Created attachment 8497 
svg with linked image

Hi,

I recently came across the same issue. For openSUSE we want to link different logos depending on the distribution branch (fixed vs. rolling release) into Xfce's splash screen. See attachment with an absolute link included in the upper left.

Did you have the chance to have a look at it already?
Comment 3 Olivier Duchateau 2019-06-29 19:49:31 CEST
On my side, I'm using new Tumbler plugin (using librsvg bug #15569) and I found with librsvg 2.44.x I'm able to get Vinzenz Vietzke's image (thumbnail is generated through Thunar or Xfdesktop). But with librsvg 2.45.x thumbnail is not generated.

It contains an absolute path to SVG image which is not present on my system, so I don't think using librsvg will resolve problem.
Comment 4 Git Bot editbugs 2020-05-25 00:32:10 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org'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.xfce.org/apps/ristretto/-/issues/23.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14197

Reported by:
istoica
Reported on: 2018-02-03
Last modified on: 2020-05-25

People

CC List:
3 users

Version

Version:
master

Attachments

Additional information