Source for https://abhchand.me/fourth-of-july
Strip EXIF data (except orientation):
# See https://photo.stackexchange.com/a/119646
exiftool -all:all= -overwrite_original -tagsfromfile @ -exif:Orientation file.jpg
Crop to 3:4 aspect ratio (vertical)
magick convert file.jpeg -gravity center -auto-orient -crop 3:4 file-out.jpeg
# to crop from the top, use -gravity north
# to crop with an offset, append an offset like `3:4+0+150`, for 150px lower (y)
Create thumbnail of file
convert file.jpg -auto-orient -thumbnail 350x350 -unsharp 0x.5 file-thumb.jpg