ImageMagick convert scan

From WickyWiki
Revision as of 12:18, 4 December 2016 by Wilbert (talk | contribs) (Created page with "Category:Ubuntu Category:Ubuntu Images Category:201612 After scanning a document you may want to resize and compress the resulting image. You should scan with a hi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

After scanning a document you may want to resize and compress the resulting image. You should scan with a higher resolution so you can have a better-quality lower resolution. The white paper background will probably not end up being white so we add a 'white-threshold'. A lower value will mean more light areas are converted to pure white.

convert 'Scanned Document-*.jpg' -set filename:f '%t(resized).%e' -white-threshold 92% -resize 1500x -quality 80  '%[filename:f]'

Also see: