• 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. fdisk: Unable to write /dev/sdg: Bad file descriptor – error while formatting USB disk
  2. Linux OS Service ‘NetFS’
  3. How to find which rpm package provides a specific file or library in RHEL / CentOS
  4. fuser Command Examples in Linux
  5. How to use shell expansions for generating shell tokens under Linux
  6. How to Check the Size of the Yum Channels in Oracle Linux
  7. What are SELinux Users and how to Map Linux Users to SELinux Users
  8. rbash – Set Restricted shell in Linux
  9. “sudo: /etc/sudoers is world writable” – How to correct the permissions of sudoers file
  10. How To Identify User Deleting Files From A Given Directory in Linux

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