I'm writing a script where i'm processing a lot of images. I create 4 files for each batch of images and I only need the last. i'm wondering if i can condense what i'm doing. Here is the first command:
Code: Select all
convert f1.png f2.png f3.png f4.png f5.png -evaluate-sequence Min -threshold 60% -negate output.png
this is the first step. But from here i only need two pieces of the image
Code: Select all
convert output.png -crop 80x35+90+40 left.png
convert output.png -crop 220x35+420+40 right.png
Now i'd like them to be one image again so i do
Code: Select all
convert -append left.png right.png final.png
Now i've created output.png, left.png, right.png and final.png. I can just erase all those with my script but can i do the cropping and appending within my first line? Seems it would save me time when doing lots of these. Thanks for the help.