• 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. CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
  2. How to run ssh on multiple ports
  3. User Account “systemd-bus-proxy”
  4. How to disable “sudo su” for users in sudoers configuration file
  5. How to change hostname in CentOS/RHEL 7
  6. How to Resize / Expand a Btrfs Volume / Filesystem
  7. How to configure iSCSI target using targetcli in CentOS / RHEL 7
  8. How to check change log of RPM packages on CentOS/RHEL
  9. “polkit code=exited status=1/FAILURE” – PolicyKit Failing to Start in CentOS/RHEL 7 and 8
  10. What are SELinux Modes and how to set them

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright