#!/bin/bash
# Check if ImageMagick is installed
if ! command -v magick &> /dev/null
then
    echo "ImageMagick is not installed. Please install it and try again."
    exit 1
fi
# Loop through all jpg files in the current directory
for file in *.JPG
do
    if [ -f "$file" ]; then
        # Compress the image
        magick "$file" -quality 85% "compressed_$file"
        echo "Compressed: $file -> compressed_$file"
    fi
done
echo "Compression complete!"
ImageMagick 批量压缩图片
Typst 相关资源
Github ssh over 443
Github 解决fork冲突
ImageMagick 图片批量裁剪白边
科研投稿相关
Mac应用损坏解决方法