Answer the question
In order to leave comments, you need to log in
Does anyone have a script for lossless image compression on the server?
We need a script so that we can specify the directory in which we search and compress via jpegoptim, jpegtran, pngcrush, optipng, advpng, gifsicle or others, if something new has appeared.
We search in the directory and subdirectories.
Saving originals is optional.
It should work on Centos from the command line.
From what I found:
https://github.com/ryanpcmcquen/image-ultimator/bl...
stackoverflow.com/questions/19153122/image-compres...
sharadchhetri.com/2014/05/29/jpeg- image-optimizati...
But it's not clear how to force search and process images in the directory and subdirectories
Answer the question
In order to leave comments, you need to log in
script and no one in general KNOWS whether the image is compressed or not
Yes, everyone wrote, you need to look for
https://klondike-studio.ru/blog/optimizatsiya-kart...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question