mirror of
https://github.com/tjsga/website-2018.git
synced 2025-04-09 22:10:18 -04:00
11 lines
237 B
Bash
Executable File
11 lines
237 B
Bash
Executable File
#!/bin/sh
|
|
FILES=.
|
|
for f in $FILES/*.jpg
|
|
do
|
|
mkdir -p $FILES/out;
|
|
convert $f -sampling-factor 4:2:0 -strip -resize 300x300 -quality 85 -interlace JPEG -colorspace sRGB ${f%.*}-new.jpg;
|
|
mv $FILES/*-new.jpg $FILES/out/$f;
|
|
|
|
done
|
|
|