Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
WIDTH=1366
HIGHT=768
for filename in ~/Pictures/WallpapersOriginal/*.jpg; do
filename=$(basename $filename)
echo $filename
convert ~/Pictures/WallpapersOriginal/$filename -resize $WIDTH -resize ${WIDTH}x$HIGHT^ -gravity center -background black -extent 1366x768 -quality 90 ~/Pictures/Wallpapers/$filename
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.