meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:multimedia:images [2017/04/22 23:27] – niziak | linux:multimedia:images [2024/02/27 10:07] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Convert to JPG ===== | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | |||
| + | ====== Convert images to PDF ===== | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | |||
| + | |||
| + | ====== merge PDFs ====== | ||
| + | <code bash> | ||
| + | |||
| + | ====== Process PDF pages ====== | ||
| + | <code bash> | ||
| + | convert -density 300 scanned.pdf output-%02d.png | ||
| + | |||
| + | convert output*.png -normalize -threshold 80% normal.png | ||
| + | # or | ||
| + | convert output*.png +dither -colors 2 -colorspace Gray -normalize normal.png | ||
| + | # or | ||
| + | convert output*.png -monochrome normal.png # <-- this product nice dithered B& | ||
| + | |||
| + | convert normal*.png final.pdf | ||
| + | </ | ||
| + | |||
| + | One liner: | ||
| + | <code bash> | ||
| + | convert -density 300 scanned.pdf -monochrome output.pdf | ||
| + | convert -density 300 scanned.pdf -normalize -threshold 70% output.pdf | ||
| + | </ | ||
| + | |||
| ====== Rename images to EXIF date ====== | ====== Rename images to EXIF date ====== | ||