clamp_image_size(src, size, enlarge)ΒΆ
Clamp an image to a given size whilst maintaining its aspect ratio
Inputs
| name | type | default | description |
|---|---|---|---|
| src | image | Source image | |
| size | int | Size in pixels to clamp longest edge to. | |
| enlarge | bool | false | True to scale smaller images to the given size. |
Outputs
| name | type | default | description |
|---|---|---|---|
| dst | image | Destination image |