Created
August 27, 2018 17:08
-
-
Save nemanjan00/0fdef397ad4438e7fe4ad7e843e21efb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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