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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. CentOS / RHEL 7 : Configuring NTP using chrony
  2. Linux OS Service ‘xendomains’
  3. How to Disable NetworkManager in CentOS/RHEL 8
  4. How to create an XFS Filesystem
  5. ‘ulimit: max user processes: cannot modify limit:operation not permitted’ Shown When Login
  6. UNIX/Linux : Access control lists (ACLs) basics
  7. iostat Command Examples in Linux
  8. How to transfer files securely using sftp (examples included)
  9. How to change the number of commands stored in Bash History
  10. Linux OS service ‘dhcpd’

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright