M
M
mUchenik2017-07-15 15:30:13
linux
mUchenik, 2017-07-15 15:30:13

How to write in jpegoptim that all images in all subfolders would be compressed?

Hi all!
There is an uploads folder, it has subfolders with images, tell me how to write a command in jpegoptim so that images are compressed in all subfolders?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-07-15
@BuriK666

find /path/to/uploads -type f -name \*.jpg -exec jpegoptim {} \;

or
find /path/to/uploads -type f |xargs -n 50 jpegoptim

V
Victor Taran, 2020-07-27
@shambler81

Wrote here
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