#!/bin/bash # convert-cinema-4k-screenshots # # GPLv3+ # Copyright (C) 2023, Jeff Moe # # Converts and crops a set of screenshot photos of # the Blackmagic Cinema 4k LCD, taken with Canon. # # Requires packages: # graphicsmagick graphicsmagick-imagemagick-compat rm tmp.jpg for i in cinema-4k-ss-*.jpg do echo $i convert \ -geometry '1920>x1920>' \ -chop 248x136 \ -gravity SouthEast \ -chop 332x148 \ $i \ tmp.jpg mv tmp.jpg $i done