Often documents you are trying to process will have different sizes. The Deskew process, for example, generally enlarges the size of the image to make room for the corners of the original, which may contain information that would be lost if the image were clipped back to its original size. If your documents use a consistent paper size, and have a black overscanned border, then the remove border tool may be the best choice; see the topic My Image has Dark Borders Around It for information on removing these borders.
In other cases, images may be generated from documents of differing sizes, or may have a white overscan that prevents border removal from being used. In this case, the solution is to process the images in two steps: