• 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. 10 useful cron examples to schedule jobs in Linux
  2. Nohup Command Examples – Runs a Command that Keeps Running after You Log Out
  3. complete: Provides argument autocompletion to shell commands
  4. dolt commit: Commit staged changes to tables
  5. funzip: Print the content of the first (non-directory) member in an archive without extraction
  6. boot: Build tooling for the Clojure programming language
  7. larasail Command Examples in Linux
  8. visudo: command not found
  9. How to recover GRUB (Corrupted boot partition) in CentOS/RHEL 5,6
  10. berks Command Examples (Chef cookbook dependency manager)

You May Also Like

Primary Sidebar

Recent Posts

  • “glab pipeline” Command Examples
  • “glab mr” Command Examples
  • “glab mr merge” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright