mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-09-29 23:41:20 -07:00
Update readme
This commit is contained in:
@@ -60,7 +60,7 @@ svg_str: str = vtracer.convert_raw_image_to_svg(input_img_bytes, img_format = 'j
|
|||||||
from PIL import Image
|
from PIL import Image
|
||||||
img = Image.open(input_path).convert('RGBA')
|
img = Image.open(input_path).convert('RGBA')
|
||||||
pixels: list[tuple[int, int, int, int]] = list(img.getdata())
|
pixels: list[tuple[int, int, int, int]] = list(img.getdata())
|
||||||
svg_str: str = vtracer.convert_pixels_to_svg(pixels)
|
svg_str: str = vtracer.convert_pixels_to_svg(pixels, img.size)
|
||||||
|
|
||||||
# All the bells & whistles, also applicable to convert_raw_image_to_svg and convert_pixels_to_svg.
|
# All the bells & whistles, also applicable to convert_raw_image_to_svg and convert_pixels_to_svg.
|
||||||
vtracer.convert_image_to_svg_py(inp,
|
vtracer.convert_image_to_svg_py(inp,
|
||||||
|
|||||||
Reference in New Issue
Block a user