I was asked about this privately.
This is an area of the codebase I've just become rather familiar with...but
hadn't touched. And, frankly, given the amount of traffic on this area
that we've had on the user lists, I don't think many others are exercising
this part of the codebase. Also, I'm not sure it is documented _anywhere_
but I could be wrong.
If you have ImageMagick configured _and_ you tell tesseract to
"enableImageProcessing", the tesseract ocr parser will include the "resize"
option in the commandline for imagemagick.
The number is a percentage of the image's current size. The default is
900%, which means that if everything is working, your image will be
expanded to 9x its current size.
As I recently added in a TODO in the source code, we should probably do
some dynamic assessment of how much to enlarge an image (auto mode) because
9x even on our unit test file takes _FOREVER_.
The commandline args for imagemagick are set via:
String[] args = new String[]{
"-density", Integer.toString(config.getDensity()),
"-depth ", Integer.toString(config.getDepth()),
"-colorspace", config.getColorspace(),
"-filter", config.getFilter(),
"-resize", config.getResize() + "%",
"-rotate", angle,
sourceFile.toAbsolutePath().toString(),
targFile.toAbsolutePath().toString()
};