Answer the question
In order to leave comments, you need to log in
PNG optimization (virtually) lossless for the web, what to use?
Hello.
Can you please suggest what is the best way to use today to compress/optimize PNG images with near lossless?
Always used the TinyPNG online service until I found a catastrophic reduction in image quality, nothing else gives a sufficient result.
I found articles on Habré, but they are from 2011-2013 (maybe outdated), so I'm at a loss. I've never given such attention to graphic compression on a site before (because I probably didn't use large backgrounds, etc.).
Answer the question
In order to leave comments, you need to log in
Photoshop has a save for web feature. In it you can see several options at once. Moreover, by changing the compression ratio, you see the result. You can also batch compress. Another moment. In some cases, oddly enough, jpeg looks better and weighs less (if there are many color shades in the picture).
https://github.com/imagemin/imagemin
PNG specific:
https://en.wikipedia.org/wiki/Pngcrush , plugin imagemin-pngcrush, loseless
https://en.wikipedia.org/wiki/Pngcrush , plugin imagemin-pngquant, lossy, quality adjustable, of course
Grunt + plugin?
https://github.com/gruntjs/grunt-contrib-imagemin
There are at least two console programs for *nix: optipng and pngquant . I
use them both for manual and automatic (in the site code) optimization.
Similarly, for JPEG there are jpegoptim and mozjpeg
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question