Svgtrace Index / Svgtrace
Auto-generated documentation for svgtrace module.
Do a trace of an image on the filesystem using the playwright library.
filenamestr - The location of the file on the filesystem, use an absolute filepath for thisblackAndWhitebool, optional - Trace a black and white SVG. Defaults to False.modestr, optional - Set the mode. See https://github.com/jankovicsandras/imagetracerjs for more information. Defaults to "default".
str- SVG string
FileNotFoundError f"{filename} does not exist!" OSError "svgtrace.trace/ asyncTrace is not supported in Windows Jupyter Notebooks"
async def asyncTrace(
filename: str, blackAndWhite: bool = False, mode: str = "default"
) -> str: ...Do a trace of an pillow image using the skimage library.
imageImage.Image - pillow image to trace
str- SVG string
def skimageTrace(image: Image.Image) -> str: ...Do a trace of an image on the filesystem using the playwright library.
filenamestr - The location of the file on the filesystem, use an absolute filepath for thisblackAndWhitebool, optional - Trace a black and white SVG. Defaults to False.modestr, optional - Set the mode. See https://github.com/jankovicsandras/imagetracerjs for more information. Defaults to "default".
str- SVG string
FileNotFoundError f"{filename} does not exist!"
def trace(filename: str, blackAndWhite: bool = False, mode: str = "default") -> str: ...