![]() ![]() There is a way to quickly replace all PNG files in a directory with their minified version. The pngquant command has also removed any EXIF and related data (although the PNG "comment" field is still there). There is a difference in quality but it's barely perceptible and this is a rather big picture with significant color depth. Here's a quick comparison of the original and compressed versions, original first with size 424 Kb:Īnd the compressed version with size 184 Kb: ![]() You can then check the result for yourself rather than taking my word for it but at some point I just started trusting the default setting. The easiest way to produce a minified version of a given image would be to use a command such as: pngquant. The good news is you don't really have to fiddle with it too much because the default (that is, not providing that quality parameter) produces pretty good results. The program accepts a parameter to set the target quality treshold. Quick important note: all these tools are meant for the command line but will work on Windows, Mac and Linux. Sometimes you just don't want to minify everything and minifications techniques are not equal in how they might affect the quality. You could very well use these independently yourself.įor instance, I tend to manually minify most of my PNG files but leave the JPG as they are unless said JPGs are really big. Image minification makes use of various independent tools. Here's a rundown of a few techniques to minify your images without losing too much in the process. That data is almost always unwanted for web usage and can divulge unwanted information about locations, among other things. Systematic image minification also has the advantage of removing all of the EXIF and similar text metadata from images. In some cases we've actually seen huge images bring servers down by snowball effect, mostly because connections have to be maintained for much longer to transfer the image data stream to each client which can severely affect some server software that possibly wasn't meant to stream high quantities of binary data. Images can quickly take up a lot of storage space and make up a huge difference in bandwidth usage when involved in mass mailing campaigns.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |