• 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

optipng for image optimization

by admin

Last time We were talked about jpegoptim and jpegtran. Today we will talk about OptiPNG. OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM, and TIFF) to optimized PNG, and performs PNG integrity checks and corrections.

Installation

Check standard packages:

# apt-get install optipng

How to use

Single file optimization

# optipng test.png

In order to optimize all the files in the images directory:

# find public / images / -iname * .png -print0 | xargs -0 optipng -o7

Filed Under: Linux

Some more articles you might also be interested in …

  1. fdupes: Finds duplicate files in a given set of directories
  2. git cola: A powerful Git GUI with a slick and intuitive user interface
  3. printf Command Examples in Linux
  4. shutdown: command not found
  5. firejail: command not found
  6. nohup Command Options in Linux
  7. pacman –query Command Examples
  8. comm: Select or reject lines common to two files. Both files must be sorted
  9. host: command not found
  10. fsck: command not found

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