Command
Convert a file by targeting the output format:
npx optimo image.png --format jxl
Tip: add --dry-run to preview changes.
Why convert?
- JPEG XL can preserve high fidelity while shrinking some PNGs.
- Useful for modern workflows or archival masters.
Format notes
PNG
Lossless image format with sharp edges and great support for transparency.
Optimize PNG Compress PNG Resize PNG PNG guide
JPEG XL
Next-gen image format designed for high quality and efficient compression.
Optimize JPEG XL Compress JPEG XL Resize JPEG XL JPEG XL guide