image
ittybit image -i photo.png -o photo.webp
Converts between image formats, resizes, or extracts a frame from video. Use this to generate thumbnails, convert to modern formats like WebP, or pull poster frames for video players.
Options
| Flag | Values | Default |
|---|---|---|
--format | jpeg · png · webp · gif · avif | per input |
--quality | very_low · low · medium · high · very_high | auto |
--width | pixels or "50%" | same as input |
--height | pixels or "50%" | same as input |
--fit | contain · cover · fill | — |
--background | hex color (e.g. #000000) | — |
--start | seconds (frame time or clip start) | 0 |
--end | seconds (enables animated output) | — |
--fps | frame rate for animated output | 10 |
Examples
Extract a poster frame from video:
ittybit image -i video.mp4 -o poster.jpg --start 5
Create a thumbnail:
ittybit image -i photo.jpg -o thumb.jpg --width 320 --quality medium
Convert to WebP:
ittybit image -i photo.png -o photo.webp
Output to S3:
ittybit image -i s3://bucket/raw/photo.png -o s3://bucket/thumbs/photo.webp --connection my-s3 --width 640
Cloud
Run on Ittybit infrastructure instead of locally:
ittybit image -i https://example.com/video.mp4 --cloud --start 5 --width 640
Requires ITTYBIT_API_KEY. The file is processed remotely and the output URL is returned.
See also
- API
POST /taskswithkind: "image"— process images via HTTP - Extract thumbnails from video — full guide with format comparison
video— transcode the full videoconnections— set up S3 for input/output