How to reduce the disk space taken by product images?

image
product-image

(Dmitry Fedyuk) #1
cd pub/media/catalog/product
find . -type f -name "*.jpg" -o -name "*.JPG" | xargs jpegoptim -m 70