News for hackers. Stuff that matters.
Re:MozJPEG 3.0 by tracker1 on Monday December 29, 2014 @12:51PM (#8810850)
I use optipng and pngquant together myself... it's been a while since I've looked though... here's the contents of my "!Drag PNG here to Optimize (pngquant and optipng as png8).bat" file ... should be able to do similar in bash/zsh script.

    @echo off

    set batchdir=%~d0%~p0

    :start
     
    "%batchdir%pngquant.exe" --ext .q.png --force --verbose 256 %1
    "%batchdir%optipng.exe" -force -o4 -out "%~dpn1.opt.png" "%~dpn1.q.png"

    del "%~dpn1.q.png"

    shift
    if NOT x%1==x goto start

    rem pause

There are no comments on this comment yet.