pixano.app.routers.thumbnail
get_thumbnail(b64_image_path, settings, max_size=128)
async
Generates a thumbnail for image found in media dir.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
b64_image_path
|
str
|
image identifier in the media directory |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
max_size
|
PositiveInt
|
maximal resolution of the image |
128
|
Returns:
Type | Description |
---|---|
StreamingResponse
|
StreamingResponse |