At the moment, no. Definitely a good suggestion.
In the meantime, you might try svg2png tools. I’ve been using cairosvg and
a Python script:
import sys
import cairosvg
for argument in sys.argv[1:]:
with open(argument) as f:
svg = f.read()
name = argument.split(".")[0]
# save a PNG - change the scale to meet your needs
cairosvg.svg2png( bytestring=svg, scale=3.0, write_to=name+".png" )
Best,
-Geoff
---
Prof. Geoffrey Hutchison
Department of Chemistry
University of Pittsburgh
tel: (412) 648-0492
email: [email protected]
twitter: @ghutchis
web: https://hutchisonlab.org/
On Apr 28, 2023 at 8:21:07 AM, MD Simulation <[email protected]>
wrote:
> Hello,
>
> I see in an svg file, I can index the elements with "-xi", but I don't see
> this option with a png file. Is it possible?
>
> Thanks,
> Frank
> _______________________________________________
> OpenBabel-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss