Download & Extend

Graphviz format svg is not supported. Please choose one of (png, jpg, gif).

Project:Graphviz Filter
Version:6.x-1.4
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I am not sure if I should post this here or on a Graphviz site. But I am unable to render svg output. I am using 2.22.2 on FC7. My error in Drupal is "Graphviz format svg is not supported. Please choose one of (png, jpg, gif)."

Can anyone give me a hint? I shouldn't be the only one who encounters this error?

Comments

#1

You need to enable the module "Graphviz filter formats".

#2

Thank you. That fixed part of the problem. I get some strange behavior now:
1. The .svg file is only generated when I am logged in as Admin. I don't get an svg file when I am nog logged in; it's only generated when I specify png, svg (when not logged in).
2. The svg object is not shown in any situation with all the browsers that I have tested (Explorer, Firefox, Chrome and Safari). Other formats like png are displayed

#3

1. I need some details:
* How is the node rendered when the SVG is not generated? Do you see the DOT script for example?
* When "png, svg" are used, how do you know the SVG is actually generated (since according to #2 you don't see it on-screen)?
* Is there a difference in behaviour between being logged in as a normal user and not being logged in at all?
* Is the input filter set to work for non-admin users?

2. Please check the generated HTML. Is there an SVG tag generated? I only tested the SVG output on Firefox 3.0/Ubuntu. You might need to download an SVG plugin.

#4

* The dot script is only rendered when I am admin of when I also generate a png.
* I see that the svg script is generated when I select png,svg
* I don't get a dot file when I select svg and when I am a normal user or not logged in; so only when I am admin.
* I have tried the input filter for non-admin users no effect. But that should also affect the png generation right?

A svg tag is generated. I have firefox 3.5 with svg built-in

#5

Sorry, but I am still confused about the symptoms of the problem:

* When you're logged in as admin, you see an SVG tag in the HTML source but it doesn't show in the browser page. Correct? Is the generated SVG fragment invalid? What happens if you manually generate an SVG graph from the command-line dot tool and try to view it in the browser, does it show then?

* When you're not admin, and you only specific SVG, what gets generated in the HTML source and what do you see in the browser page?

* When you're not admin, and you specify PNG and SVG, what gets generated in the HTML source and what do you see in the browser page?

It would help if you could attach screenshots and HTML fragments. Thanks for your help.

#6

Status:active» closed (fixed)

Closed unless I hear back from the original poster.

nobody click here