Script to crop Cinema 4k LCD screenshots
parent
9726060b33
commit
370a3ea51f
|
@ -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
|
Loading…
Reference in New Issue