JPEG optimization:
# apt-get install cmake nasm $ git clone https://github.com/mozilla/mozjpeg.git $ cd mozjpeg $ cmake . $ make all install
PNG optimization:
optipng -o7 $file && advpng -z -4 $file
Project | Debian packages | Comments |
---|---|---|
pingo1) | ![]() | |
pmt | ![]() | |
pngquant | ![]() | |
optipng | ![]() | Lossy compression of PNG images |
AdvanceCOMP | ![]() | Takes advantage of 7-Zip and Zopfli DEFLATE encoders which are 5-10% more effective that zlib |
PNG lossy averaging filter | ![]() | Optimized lossy PNG is still a bit larger than lossy JPEG-XR/WebP/JPEG-2K, but unlike these formats it's supported by all browsers |
Comparison:
.psd
files?
convert in.pdf -compress jpeg -quality 90 -density 600x600 +adjoin -scene 1 out-%d.jpg
2)
but it generates low resolution images. Alternatively use Ghostscript (see Using Ghostscript to convert multi-page PDF into single JPG and Converting multi-page PDFs to several JPGs using ImageMagick and/or GhostScript):
gswin32c.exe -dBATCH -dNOPAUSE -dSAFER -sDEVICE=jpeg -dJPEGQ=95 -r600x600 -sOutputFile=out-%03d.jpg in.pdf
3)
"Девица не хочет лезть в Окно" – device not compatible with Windows.