Compress Image with FFmpeg | ATLASSC.NET
Skip to main content
/// .DATA.FRAGMENT_20221205

Compress Image with FFmpeg

1 minAuthor: Z.SHINCHVEN

FFmpeg is a powerful tool to process video and audio files.

It can also be used to compress images.

Compress JPEG

FFmpeg uses mjpeg as the default codec for JPEG.

ffmpeg -i input.jpg -q:v 1 -vf scale=320:-1 output.jpg
  • -q:v 1 also -qscale:v 1 means the quality of the output image is 1/31. The smaller the number, the better the quality. 1 is the best quality, 31 is the worst quality.
  • -vf scale=320:-1 means the output image is scaled to 320px width, and the height is automatically calculated.
RackNerd Billboard Banner
Share node:
/// .RELATED.DATA_STREAMSShared tags

Related posts

Scanning_database_for_correlations…

/// .UPLINK.SUBSCRIBE

Keep your deck synced with every new transmission from ATLASSC.NET. Subscribe over RSS or Atom, or wire the whole archive straight into your AI assistant with the MCP server.