Split Image for Dual Monitor

A helper script to crop an image to 3440x2880 and then splitting it into top and bottom halves for use with a dual, vertical monitor setup.

#!/bin/bash

magick $1 -resize 3440x2880^ -gravity center -extent 3440x2880 bg_tmp.png.png

# magick bg_tmp.png.png -crop 100%x50%+0+0 +repage top.jpg
# magick bg_tmp.png.png -crop 100%x50%+0+50% +repage bottom.jpg
magick bg_tmp.png.png -crop 3440x1440+0+0 +repage bg_top.jpg
magick bg_tmp.png.png -crop 3440x1440+0+1440 +repage bg_bot.jpg

rm bg_tmp.png.png

Discover content by tag:

© 2026 Paul Smith Contact & Privacy Policy