Added Network icon to bar and rework some of the debug prints
This commit is contained in:
@@ -17,6 +17,8 @@ mkdir -p "$THUMB_DIR"
|
||||
# Max width/height of the thumbnails
|
||||
MAX_DIM=300
|
||||
|
||||
num=0
|
||||
|
||||
# Process each image
|
||||
for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
||||
# Skip if no files match
|
||||
@@ -33,8 +35,10 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
||||
continue
|
||||
fi
|
||||
|
||||
num+=1
|
||||
|
||||
# Generate thumbnail using ImageMagick
|
||||
magick "$img" -resize "${MAX_DIM}x${MAX_DIM}" "$thumb"
|
||||
done
|
||||
|
||||
echo "Thumbnails generated in $THUMB_DIR"
|
||||
echo "$num Thumbnails generated in $THUMB_DIR"
|
||||
Reference in New Issue
Block a user