Installation npm install -g tinyimage Usage tinypng -d %path or file% -t %target path% Example tinypng or tinypng -d ./ or tinypng -d ./ -t ./