How To Install Jpegoptim In Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS?

How To Install Jpegoptim In Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS?

jpegoptim

Optimise JPEG images.

Maintainer: Mathieu Malaterre



Section: graphics

Install jpegoptim

  • Debian apt-get install jpegoptim Click to copy
  • Ubuntu apt-get install jpegoptim Click to copy
  • Alpine OS apk add jpegoptim Click to copy
  • Arch Linux pacman -S jpegoptim Click to copy
  • Kali Linux apt-get install jpegoptim Click to copy
  • Fedora dnf install jpegoptim Click to copy
  • Raspbian apt-get install jpegoptim Click to copy
  • macOS brew install jpegoptim Click to copy

Optimise JPEG images.

How to use jpegoptim?

Below are few example commands for jpegoptim that you can use in the terminal.

Optimise a set of JPEG images, retaining all associated data:
jpegoptim image1.jpeg image2.jpeg imageN.jpegClick to copy
Optimise JPEG images, stripping all non-essential data:
jpegoptim --strip-all image1.jpeg image2.jpeg imageN.jpegClick to copy
Force the output images to be progressive:
jpegoptim --all-progressive image1.jpeg image2.jpeg imageN.jpegClick to copy
Force the output images to have a fixed maximum filesize:
jpegoptim --size=250k image1.jpeg image2.jpeg imageN.jpegClick to copy
Installation of latest jpegoptim command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.