Script to crop Cinema 4k LCD screenshots

main
Jeff Moe 2023-03-22 16:18:20 -06:00
parent 9726060b33
commit 370a3ea51f
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/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