pixano.datasets.utils.image
image_to_thumbnail(image)
Generate image thumbnail.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image
|
bytes | Image
|
Image as binary or as a Pillow Image. |
required |
Returns:
Type | Description |
---|---|
bytes
|
Image thumbnail as binary. |