• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

jpegoptim for image optimization

by admin

Introduction

Last time looked at the jpegtran command for optimizing images. Today, We will talk about jpegoptim. jpegoptim is a utility for optimizing JPEG files. It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting a maximum quality factor.

Installation of jpegoptim

For Debian users:

# apt-get install jpegoptim

Usage of jpegoptim

1. To perform optimization, just run the command:

# jpegoptim file.jpg

2. It is better to use an additional parameter to cut out all metadata that is not needed on the site:

# jpegoptim file.jpg --strip-all

3. To optimize all JPG images in a folder at once:

# jpegoptim * .jpg --strip-all

Filed Under: Linux

Some more articles you might also be interested in …

  1. dir Command Examples in Linux
  2. kubens Command Examples
  3. rc-update: command not found
  4. chromium: Open-source web browser principally developed and maintained by Google
  5. traceroute: command not found
  6. How to uninstall aria2 from Ubuntu
  7. envoy: A PHP-based task manager for Laravel remote servers
  8. kind Command Examples
  9. quotacheck Command Examples in Linux
  10. llvm-as Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright