OERenderMoleculeToBytes

OERenderMoleculeToBytes(extension: str, disp: OE2DMolDisplay,
                        clearbg: bool = True) -> bytes
OERenderMoleculeToBytes(extension: str,
                        mol: Union[OEGraphMol,OEMol,OEQMol],
                        clearbg: bool = True) -> bytes

Same as the OERenderMoleculeToString function.