blob: cceeae7661e12f8ef30c39204399aaae33c8bf54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
# Navigate to the directory containing your images
cd /home/lemon/code/html/jo-rebrand/img/
# Loop through each image file
for file in *.jpg *.JPG *.png *.gif; do
# Check if the file exists and is a regular file
if [ -f "$file" ]; then
# Resize the image using ImageMagick's convert command
convert "$file" -resize '400x>' "$file"
echo "Resized $file"
fi
done
|