Learn about Centmin Mod LEMP Stack today
Register Now

CentOS 7 Beta Branch add YUM package pngquant for .08 beta

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 23, 2015.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    30,149
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    11:25 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. RoldanLT

    RoldanLT Well-Known Member

    3,899
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:25 PM
    1.11
    10.2
    This is for Wordpress site needing this app right?
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,149
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    11:25 PM
    Nginx 1.13.x
    MariaDB 5.5
    well you forget that I also add stuff to Centmin Mod that I personally use often too ;)

    but yeah it can be used for Wordpress or just for general use :)
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,899
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    9:25 PM
    1.11
    10.2
    Will not use much server resource? :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,149
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    11:25 PM
    Nginx 1.13.x
    MariaDB 5.5
    it's a tool like siege bench, only when it's run manually will it use resources

    it's not a service :)

    see Overview of PNG optimization tools for a run down of pngquant and other tools like it
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,149
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    11:25 PM
    Nginx 1.13.x
    MariaDB 5.5
    example running tools against .08 beta 02's default /usr/local/nginx/html/nginx-logo.png

    Code:
    ls -la
    total 84
    drwxr-xr-x 2 root  root   4096 May 23 15:01 .
    drwxr-xr-x 6 nginx nginx  4096 May 23 14:33 ..
    -rw-r--r-- 1 root  root   8163 May 23 14:46 nginx-logo-fs8.png
    -rw-r--r-- 1 root  root  11908 May 23 15:01 nginx-logo-lossyt-8bit-m.png
    -rw-r--r-- 1 root  root  11914 May 23 15:00 nginx-logo-lossyt-8bit.png
    -rw-r--r-- 1 root  root  11914 May 23 14:59 nginx-logo-lossyt.png
    -rw-r--r-- 1 root  root  12974 May 23 15:01 nginx-logo-optipng.png
    -rw-r--r-- 1 root  root  15382 May 23 14:33 nginx-logo.png
    
    Code:
    pngquant -v --speed 1 nginx-logo.png
    zopflipng -m --lossy_8bit --lossy_transparent nginx-logo.png nginx-logo-lossyt-8bit-m.png
    zopflipng --lossy_8bit --lossy_transparent nginx-logo.png nginx-logo-lossyt-8bit.png
    zopflipng --lossy_transparent nginx-logo.png nginx-logo-lossyt.png
    optipng -o7 nginx-logo.png --out nginx-logo-optipng.png
    Code:
    pngquant -v --speed 1 nginx-logo.png
    nginx-logo.png:
      read 16KB file
      made histogram...1350 colors found
      selecting colors...3%
      selecting colors...15%
      selecting colors...18%
      selecting colors...20%
      selecting colors...22%
      selecting colors...35%
      selecting colors...47%
      selecting colors...60%
      selecting colors...73%
      selecting colors...86%
      selecting colors...98%
      selecting colors...100%
      moving colormap towards local minimum
      eliminated opaque tRNS-chunk entries...0 entries transparent
      mapped image to new colors...MSE=1.176 (Q=95)
      writing 256-color image as nginx-logo-fs8.png
    No errors detected while quantizing 1 image.
    Code:
    zopflipng -m --lossy_8bit --lossy_transparent nginx-logo.png nginx-logo-lossyt-8bit-m.png
    Optimizing nginx-logo.png
    Filter strategy minimum sum: 11908 bytes
    Result is smaller
    Input size: 15382 (15K)
    Result size: 11908 (11K). Percentage of original: 77.415%
    Code:
    optipng -o7 nginx-logo.png --out nginx-logo-optipng.png         
    OptiPNG 0.6.4: Advanced PNG optimizer.
    Copyright (C) 2001-2010 Cosmin Truta.
    
    ** Processing: nginx-logo.png
    350x90 pixels, 4x8 bits/pixel, RGB+alpha
    Reducing image to 3x8 bits/pixel, RGB
    Input IDAT size = 15239 bytes
    Input file size = 15382 bytes
    
    Trying:
      zc = 9  zm = 9  zs = 0  f = 4         IDAT size = 12970
      zc = 9  zm = 8  zs = 0  f = 4         IDAT size = 12970
      zc = 9  zm = 9  zs = 0  f = 5         IDAT size = 12844
      zc = 9  zm = 8  zs = 0  f = 5         IDAT size = 12844
                                  
    Selecting parameters:
      zc = 9  zm = 8  zs = 0  f = 5         IDAT size = 12844
    
    Output file: nginx-logo-optipng.png
    
    Output IDAT size = 12844 bytes (2395 bytes decrease)
    Output file size = 12974 bytes (2408 bytes = 15.65% decrease)
     
    • Like Like x 1