10-16-2024, 02:00 AM
I ended up using the command
Then I wrote a simple script to do the job for me as it is a reoccurring situation.
mogrify -crop 1280x1024+0+0 *.pngwhich I found at https://superuser.com/questions/1161340/...mmand-line .
Then I wrote a simple script to do the job for me as it is a reoccurring situation.
#!/bin/bash
while true; do
echoThis will modify the files. Hope you have a backup!read -pAre you in directory with image files?yn
case $yn in
[Yy]* ) echo ;
read -pWhat extension do the image files have?extention
identify *.$extentionecho**Now you know the resolution of the files in dir
echoNow set the width and lengthechoFor Architectural Digest use 2064 and 2602echo read -pWhat width from left border is desired?width
read -pWhat length is desired?length
echo echoNow set the offsetsechoFor Architectural Digest use 0 and 150echo read -pWhat offset from left is desired?xoffset
read -pWhat offset from top is desired?yoffset
echo echoModifying original files, hope you made a backup...mogrify -verbose -crop$widthx$length+$xoffset+$yoffset*.$extentionbreak;;
[Nn]* ) echoPlease place files into folder and run again.; exit;;
* ) echoPlease answer yes or no.;;
esac
done