Answer the question
In order to leave comments, you need to log in
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
find /path/to/uploads -type f -name \*.jpg -exec jpegoptim {} \;
find /path/to/uploads -type f |xargs -n 50 jpegoptim
Wrote here
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