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 · 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 extraction time) | 0 |
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
Local
Run locally using FFmpeg instead of cloud:
ittybit image \
-i video.mp4 \
-o poster.jpg \
--local \
--start 5 \
--width 640
Requires FFmpeg installed. The file is processed on your machine.
See also
- API
POST /jobswithkind: "image"— process images via HTTP - Extract thumbnails from video — full guide with format comparison
animation— extract animated clips (GIF/WebP) from videovideo— transcode the full videoconnections— set up S3 for input/output