I have a bunch of photos in various aspect ratios (4:3, 16:9, etc.) that I’d like to crop to 4:3 and resize to 800 x 600, to use in an oldish digital picture frame.
IINM I used to do this in gwenview with kipi-plugins installed, but for some time now this doesn’t work, according to some old posts here it is a library version issue.
I also tried digikam but the bottom of wider photos (16:9) were padded with the bottom part of the previous 4:3 photos processed. A very weird behavior, or I did something very wrong.
I can batch rezise with something like
mogrify -resize 800x600 -format jpg *.jpg
But I can’t seem to find a way to batch crop the photos first.
I found an application with gui in the graphic repositories to do image batch/crop resizing.
Might be of help to someone looking for an easy to use and without using
the commandline.
I just wanted to add that I did some testing on converting those files and you can loop through the files and pad a cropped_ from the beginning of the file name.
for f in *.jpg; do convert "$f" -gravity center -crop 4:3 **"${f/#/cropped_}"**; done
Or place the newly cropped files into another directory where the original jpg files are.
for f in *.jpg; do convert "$f" -gravity center -crop 4:3 "**/path/to/new/directory/${f/#/cropped_}**"; done