zip_image.sh
This commit is contained in:
parent
67b18c2586
commit
3b6b124860
@ -331,7 +331,10 @@ find "$IMAGE_DIR" -type f \
|
|||||||
-iregex '.*\.\(jpg\|jpeg\)' -print0 | \
|
-iregex '.*\.\(jpg\|jpeg\)' -print0 | \
|
||||||
xargs -0 -P "$THREADS" -I {} bash -c 'process_jpeg "$@"' _ {}
|
xargs -0 -P "$THREADS" -I {} bash -c 'process_jpeg "$@"' _ {}
|
||||||
|
|
||||||
# Конвертация в WebP
|
# Конвертация в WebP из исходных файлов
|
||||||
find "$IMAGE_DIR" -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) \
|
find "$IMAGE_DIR" -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) \
|
||||||
|
-not -path "$COMP_DIR/*" \
|
||||||
|
-not -path "$WEBP_DIR/*" \
|
||||||
|
! -name "*-no-comp.*" \
|
||||||
-print0 | \
|
-print0 | \
|
||||||
xargs -0 -P "$THREADS" -I {} bash -c 'process_webp "$@"' _ {}
|
xargs -0 -P "$THREADS" -I {} bash -c 'process_webp "$@"' _ {}
|
Loading…
Reference in New Issue
Block a user