ristretto does not show custom svg background but firefox does

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
theprez
Posts: 15
Joined: 2024-01-05 15:07
Has thanked: 2 times

ristretto does not show custom svg background but firefox does

#1 Post by theprez »

Hi, apologies if wrong section.

I generate svg with custom background like so :

mmdc version

Code: Select all

$ mmdc -V
11.4.2
$ cat test.mermaid
sequenceDiagram
    developer ->>+ app: 1. Dev
$ mmdc -i test.mermaid -o output.svg -b 'red'
When i open output.svg with firefox, background is red, as expected.

When i open output.svg with ristretto image viewer (0.12.4) , image has no background.

What gives?
From my point of view svg is ok, since firefox can view it. it even has :

Code: Select all

 style="max-width: 450px; background-color: red;"
in the file.

Thanks for any pointers to resolve this.

arzgi
Posts: 1614
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 85 times

Re: ristretto does not show custom svg background but firefox does

#2 Post by arzgi »

ristretto is quite limited, I don't think it can show other than bitmaps.

Image magick has a display program, which I've read should show also svg-files.

And in the repo is

Code: Select all

p   vlc-plugin-svg    - SVG plugin for VLC   

theprez
Posts: 15
Joined: 2024-01-05 15:07
Has thanked: 2 times

Re: ristretto does not show custom svg background but firefox does

#3 Post by theprez »

arzgi wrote: 2024-12-10 15:34 ristretto is quite limited, I don't think it can show other than bitmaps.

Image magick has a display program, which I've read should show also svg-files.

And in the repo is

Code: Select all

p   vlc-plugin-svg    - SVG plugin for VLC   
Hello I have same issue with gnome image viewer 43.2 and imagemagick 8:6.9.11.60

arzgi
Posts: 1614
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 85 times

Re: ristretto does not show custom svg background but firefox does

#4 Post by arzgi »

Did you try vlc and the plugin? And some more technical if you are interested http://stackoverflow.com/questions/9853325/ddg#14174624

theprez
Posts: 15
Joined: 2024-01-05 15:07
Has thanked: 2 times

Re: ristretto does not show custom svg background but firefox does

#5 Post by theprez »

arzgi wrote: 2024-12-10 17:38 Did you try vlc and the plugin? And some more technical if you are interested http://stackoverflow.com/questions/9853325/ddg#14174624
I installed the vlc plugin you mentioned but i cant open svg file with vlc. The plugin documentation says "This plugin allows you to render SVG graphics on top of the video. It is a text renderer" which means it's not made for viewing.

I do not want to convert svg from png. I use svg when doing diagrams and i need to zoom in. With png it gets blurry. The core of my issue is that i want it to work within emacs so that i can open a side buffer for preview purposes as it's more practical for me than to put emacs on the side of my web browser (i use vertical tabs and it takes lots of room in firefox)

Post Reply