Skip to content

Instantly share code, notes, and snippets.

@mnn
Created October 1, 2013 15:32
Show Gist options
  • Save mnn/6780318 to your computer and use it in GitHub Desktop.
Save mnn/6780318 to your computer and use it in GitHub Desktop.
Converts wallpaper picture to 1920x1080 dual monitor setup - left monitor filled with gray, right with input image. Uses ImageMagick.
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "$0 <input_file> <output_file>"
exit 1
fi
convert "$1" -resize 1920x1080 -background "#222222" -gravity east -extent 3840x1080 "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment