You're looking at a specific version of this model. Jump to the model overview.
littletry /compress-image:b64c64a9
Input schema
The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| image |
string
|
A static JPEG, PNG, WebP, or AVIF image up to 50 MB and 40 MP.
|
|
| output_format |
None
|
webp
|
Output format. same keeps the input container format.
|
| compression_mode |
None
|
quality
|
None
|
| quality |
integer
|
82
Min: 1 Max: 100 |
Lossy JPEG, WebP, or AVIF quality from 1 to 100.
|
| target_size_kb |
integer
|
Min: 1 Max: 51200 |
Required output size in KB for target_size mode.
|
| max_width |
integer
|
Min: 1 Max: 16384 |
Optional maximum width in pixels. Images are never enlarged.
|
| max_height |
integer
|
Min: 1 Max: 16384 |
Optional maximum height in pixels. Images are never enlarged.
|
| allow_resize_for_target |
boolean
|
True
|
None
|
| strip_exif |
boolean
|
True
|
Remove camera metadata, including possible GPS information.
|
| preserve_icc_profile |
boolean
|
True
|
Preserve the embedded ICC color profile when present.
|
| background_color |
string
|
#ffffff
|
Opaque CSS color used behind transparency for JPEG output.
|
| only_if_smaller |
boolean
|
True
|
None
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}