
## vectorize {#str}

Vectorizes raster image from the specified file.


### Returns 


The SVG document.


```python
def vectorize(self, image_file):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| image_file | str | The path to the image file. |


## vectorize {#io.RawIOBase}

Vectorizes raster image from the specified stream.


### Returns 


The SVG document.


```python
def vectorize(self, image_stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| image_stream | io.RawIOBase | The stream with image. |



### See Also
* module [`aspose.svg.imagevectorization`](../../)
* class [`ImageVectorizer`](/svg/python-net/aspose.svg.imagevectorization/imagevectorizer)
