• 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

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. Linux Network File System (NFS) interview questions
  2. fprintd-enroll: command not found
  3. pacman –deptest Command Examples
  4. CentOS / RHEL : How to setup session idle timeout (inactivity timeout) for ssh auto logout
  5. What is SUID, SGID and Sticky bit ?
  6. Set FTP Autologin with .netrc file in Linux
  7. apache2ctl: command not found
  8. Troubleshooting Common GUI / X-Window Issues on CentOS/RHEL
  9. How to map /dev/sdX and /dev/mapper/mpathY device from the /dev/dm-Z device
  10. mandb: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright