ImageMagic can do this with mogrify. You can add it to your term workflow or batch the images at the end.
mogrify -trim +repage *.png
Add -fuzz if the background is a bit not so consistently white.
ImageMagic can do this with mogrify. You can add it to your term workflow or batch the images at the end.
mogrify -trim +repage *.png
Add -fuzz if the background is a bit not so consistently white.
If I want to scan a 100mm wide by 50mm tall area at 300 DPI, I use:
scanimage -x 100 -y 150 --resolution 300 --output-file foo.jpg
Thanks! I did end up setting the X and Y measurements. It's just too bad that my scanners scanning points do not start exactly in the corner of the scanner. It was a somewhat cheapo scanner, so I guess I got what I paid for.
all 5 comments