Unix utility that straightens images?
February 8, 2006 8:26 AM
Subscribe
Is there a Unix command-line utility that automatically straightens images?
I have some images containing pure black text on a white background, but these images were scanned from paper documents and aren't aligned perfectly -- that is, the text is slightly on an angle. I'd like to find a Unix tool that automatically rotates the images so that the text is straight.
(The Unix part is important, as this process will be automated on a Linux box. And I'm dealing with hundreds of images here, so I don't have the resources to do the rotation by hand.)
The images contain only text, no graphics. The rotation needed is inconsistent across documents, but it's generally between .5 and 2 degrees in either direction.
posted by adrian_h to computers & internet (6 comments total)
convert -rotate nn foo.jpg foo_rotated.jpg
posted by boo_radley at 8:45 AM on February 8, 2006