Created
December 5, 2019 10:45
-
-
Save AlekseyArh/f28a8c301e2c510a8a57f7562720b09c to your computer and use it in GitHub Desktop.
Оптимизация изображений командой в Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -copy none убирает все метаданные из исходного файла | |
# -optimize оптимизирует изображение | |
# -quality 85 степень сжатия | |
find /dir/ -name "*.jpg" -type f -exec jpegtran -quality 85 -copy none -optimize -outfile {} {} \; | |
# Изменяет формат на progressive | |
find /dir/ -name "*.jpg" -type f -exec jpegtran -progressive -outfile {} {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment