Initial commit

This commit is contained in:
2025-11-26 19:57:06 -05:00
commit 76c81548bf
8 changed files with 182 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
#
# images_resize Resizing large JPGs in current directory
# Based on: https://shkspr.mobi/blog/2016/12/converting-rar-to-zip-in-linux/
#
# Usage: xxx.sh
echo "Resizing large JPGs in $(pwd)"
for f in $(find . -regextype posix-egrep -regex ".*\.(jpg|JPG|JPEG|jpeg)$")
#echo "Resizing $(f)"
#do mogrify -resize 2800000@@\> -sampling-factor 4:2:0 -strip -quality 85% -colorspace RGB $f
do ~/Applications/magick "$f" -resize 8000000@@\> -sampling-factor 4:2:0 -strip -quality 85% "$f"
done