Compress PNGs with pngquant in Houdini

Compress PNGs with pngquant

pngquant --force --speed 1 --quality 90 file-in.png -o out.png

python script node

import subprocess ["pngquant", "--force", "--speed", "1", "--quality", "90", oldfilename, "-o", newfilename ] )

installing pngquant on linux

sudo apt install pngquant

installing pngquant on win10

download and copy to C/program files/pngquant/ right click on THIS PC -> properties -> advanced system settings advanced tab -> Environment Variables then Double click the Path Variable click new then paste this: C:\Program Files\pngquant\


Published: September, 2021