Open ghost opened 11 years ago
Интересный вариант, я подумаю как его правильней прикрутить, но скорей всего будет переезд на node.js
но скорей всего будет переезд на node.js
@banzalik, Со своим блекджеком или опять же все эти тулзкиты под разными лицензиями ?
То, что есть сейчас (бардак с разными утилитами) + пару шлюх.
Не совсем верно даны определения аргументов xargs
:
-n = кол-во одновременно считываемых аргументов поданных на вход за раз
-P = максимальное количество одновременно запущенных процессов вызываемых команд (по дефолту 1)
Original: http://jetpackweb.com/blog/2010/02/24/optimize-your-pngs-with-optipng/
_man xargs_
Example:
find <folder> -iname '*.png' -print0 | xargs -n 1 -P 16 -0 optipng -o7
-n
= кол-во потоков приложения-P
= кол-во файлов (аргументов), обрабатываемых одним потоком