G
G
GDie2016-01-23 17:56:28
linux
GDie, 2016-01-23 17:56:28

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

3 answer(s)
D
Dimonchik, 2016-01-23
@dimonchik2013

script and no one in general KNOWS whether the image is compressed or not

S
sim3x, 2016-01-24
@sim3x

How to reduce thousands of pictures in all subfolders?

V
Victor Taran, 2018-11-02
@shambler81

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 question

Ask a Question

731 491 924 answers to any question