I come accross this problem in various places, so hopefully I can get an answer on how to do this that I can apply in various ways.
This particular problem, I'm converting some images to binary, but sometimes I need to go back and redo one if it didn't convert well enough using a different setting. I'd like to just process 3 different versions of the image to start with. I would like to read in the image once, but output 3 copies with different processing. How do I do that the quickest way?
My command is (i've edited as it normally runs in a loop) :
Code: Select all
convert sample.jpg !lat! ^
-background white -gravity center -extent 3307x4667 ^
-compress group4 -define quantum:polarity=min-is-white version1\out.tif
Code: Select all
-lat 85x85-30
-lat 85x85-10
-lat 50x50-40
Ideally the outfiles would drop into 3 parallel directory trees. (rather than the same dir)
Anybody able to help ?
(PS is that a good way to convert greyscale scanned text to binary ? )