diff --git a/smallpictures.sh b/smallpictures.sh new file mode 100755 index 0000000..f496741 --- /dev/null +++ b/smallpictures.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ ! -d "small" ] +then + echo "Create dir *small/*" + mkdir -p "small" +fi + +echo "Convert pictures to preview and bigger version..." +for i in *.$1; do + magick $i -quality 50% -resize '800x800' small/${i%.$1}-preview.$1; + magick $i -quality 88% -resize '4096x4096' small/$i; + +done + +echo "Delete metadata..." +exiftool -all= -overwrite_original small/* + +echo "Done!"