optimo
WhyFormats

Resize media

Resizing is the fastest way to reduce file size. Pick a format to get examples you can run locally with optimo.

Images

PNG
For UI screenshots, try `--resize w960` (or similar) before converting formats.
JPEG
For hero images, cap width (`--resize w1920`) to avoid shipping huge originals.
WebP
For product galleries, try `--resize w1280` to control worst-case payload.
AVIF
Use `--resize w1600` (or similar) to cap large camera exports.
HEIC
Phone photos are often huge; resize first to the max display size.
JPEG XL
Resize to your max render size before generating final delivery formats.
GIF
Animated GIFs explode in size with resolution; resize aggressively.
SVG
SVG is vector; “resizing” usually happens at render time, not by rewriting the file.

Videos

MP4
Match the video width to the player size; oversizing wastes bandwidth.
WebM
For product UI recordings, `--resize w1280` is often enough.
MOV
Editor exports can be overkill; resize to the max player dimensions.
MKV
If this is archival, keep MKV; if it’s delivery, convert and resize.
AVI
AVI sources can be huge; start by capping width.
OGV
Cap resolution to the player size; don’t ship larger than necessary.
Resize modes: percent (50%), dimensions (w960 / h480), or target size (100kB).
optimo — go to homepage

Format-specific commands for images and videos. Copy-paste commands to optimize, convert, compress, and resize media locally.

GitHubnpm/optimo

Product

OptimizeConvertCompressResizeCompareFormats

Image formats

Optimize PNGOptimize JPEGOptimize WebPOptimize AVIFOptimize HEICOptimize JPEG XLOptimize GIFOptimize SVG

Video formats

Optimize MP4Optimize WebMOptimize MOVOptimize MKVOptimize AVIOptimize OGV

Popular conversions

Convert HEIC to JPEGConvert HEIC to WebPConvert PNG to WebPConvert PNG to AVIFConvert JPEG to WebPConvert JPEG to AVIFConvert GIF to MP4Convert GIF to WebMConvert PNG to JPEGConvert PNG to HEICConvert PNG to GIFConvert JPEG to PNG