Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,13 +33,13 @@ def convert_image(image, color_mode, hierarchical, mode, filter_speckle,
|
|
| 33 |
|
| 34 |
# Convert Gradio image to bytes for vtracer compatibility
|
| 35 |
img_byte_array = io.BytesIO()
|
| 36 |
-
image.save(img_byte_array, format='
|
| 37 |
img_bytes = img_byte_array.getvalue()
|
| 38 |
|
| 39 |
# Perform the conversion
|
| 40 |
svg_str = vtracer.convert_raw_image_to_svg(
|
| 41 |
img_bytes,
|
| 42 |
-
img_format='
|
| 43 |
colormode=color_mode.lower(),
|
| 44 |
hierarchical=hierarchical.lower(),
|
| 45 |
mode=mode.lower(),
|
|
|
|
| 33 |
|
| 34 |
# Convert Gradio image to bytes for vtracer compatibility
|
| 35 |
img_byte_array = io.BytesIO()
|
| 36 |
+
image.save(img_byte_array, format='PNG')
|
| 37 |
img_bytes = img_byte_array.getvalue()
|
| 38 |
|
| 39 |
# Perform the conversion
|
| 40 |
svg_str = vtracer.convert_raw_image_to_svg(
|
| 41 |
img_bytes,
|
| 42 |
+
img_format='png',
|
| 43 |
colormode=color_mode.lower(),
|
| 44 |
hierarchical=hierarchical.lower(),
|
| 45 |
mode=mode.lower(),
|