Command

Convert a file by targeting the output format:

npx optimo image.webp --format jpeg

Tip: add --dry-run to preview changes.

Why convert?

  • JPEG is widely supported and easy to handle across tooling.
  • Useful when you don’t need transparency.

Format notes

WebP
Modern image format with great compression and broad browser support.
Optimize WebP Compress WebP Resize WebP WebP guide

JPEG
The classic photo format: widely supported, good quality-to-size for photographs.
Optimize JPEG Compress JPEG Resize JPEG JPEG guide

Not sure which to use?

If you're choosing a delivery format, here's a quick comparison.

JPEG vs WebP