Saving SVG images

Following a previous post (Make a PNG-image column with python - #10 by l.thomas) in which I am generating a plot in Python as SVG,
I am now wondering if there is a more straightforward way to save SVG as images.
Currently I do “Renderer to Image” to yield a PNG, then “PNG to ImagePlus” to be able to save it with the Image Writer.
As illustrated here:


Being able to directly save Png or SVG would be great.
Apparently I could save the SVG using the XML writer but then how do I open it as an image in an usual viewer ?

Hi @l.thomas

Can’t you just use the Image Writer (Table Column) for this?

https://hub.knime.com/knime/nodes/Image_Writer_Table_Column*ajTDEmdYEJUQVeYb

Best, Iris

2 Likes

Hi Iris,
I did not know about that node ! Works like a charm thanks !

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.