Надеюсь, я в порядке, спрашиваю здесь (я собирался поставить это на SO, но решил, что, вероятно, лучше разместить здесь)
Я немного погуглил, чтобы попытаться понять это сам, но ничего не придумал. Я установил pngquant с помощью:
sudo apt-get install pngquant
Ничего страшного, кроме номера версии:
pngquant, version 1.0 of 5 April 2002, by Greg Roelofs.
Compiled with libpng 1.2.46; using libpng 1.2.49.
Compiled with zlib 1.2.3.4; using zlib 1.2.7.
Из того, что я прочитал, нам нужно использовать версию 2.0 (так как 1.0 довольно с потерями, и версия старше 10 лет). Как вы собираетесь заставить его использовать последнюю версию? Я использую Debian 7, если это поможет.
ОБНОВИТЬ Я решил оставить версию 1.0 (так как мне пока неудобно обновляться до Debian 8.1). Однако глупая штука отказывается работать:
root@#serever: pngquant -ext .png -force 256 test.png
pngquant, version 1.0 of 5 April 2002, by Greg Roelofs.
Compiled with libpng 1.2.46; using libpng 1.2.49.
Compiled with zlib 1.2.3.4; using zlib 1.2.7.
usage: pngquant [options] <ncolors> [pngfile [pngfile ...]]
[options] -map mapfile [pngfile [pngfile ...]]
options:
-force overwrite existing output files
-ordered use ordered dithering (synonyms: -nofloyd, -nofs)
-verbose print status messages (synonyms: -noquiet)
Quantizes one or more 32-bit RGBA PNGs to 8-bit (or smaller) RGBA-palette
PNGs using either ordered dithering or Floyd-Steinberg diffusion dithering
(default). The output filename is the same as the input name except that
it ends in "-fs8.png" or "-or8.png" (unless the input is stdin, in which
case the quantized image will go to stdout). The default behavior if the
output file exists is to skip the conversion; use -force to overwrite.
NOTE: the -map option is NOT YET SUPPORTED.
Как видите, все, что он делает (независимо от того, какие аргументы я передаю), это выплёвывает файл справки! Я пробовал основы:
pngquant foo.png
... но то же самое. Любые идеи?