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: geo...@pitt.edu
twitter: @ghutchis
web: https://hutchisonlab.org/


On Apr 28, 2023 at 8:21:07 AM, MD Simulation <mdsimulationgr...@gmail.com>
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
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to