meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:multimedia:images [2017/02/21 22:03] – created 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 ====== | ||
| + | |||
| + | Use **krename** application. | ||
| + | |||
| + | ===== jhead ===== | ||
| + | <code bash> | ||
| + | jhead -n%Y%m%d-%H%M%S *.jpg | ||
| + | </ | ||
| + | |||
| + | ===== exiv2 ===== | ||
| + | exiv2 -k -r ' | ||
| + | exiv2 -v -r ' | ||
| + | |||
| + | ===== exiftool ===== | ||
| + | <code bash> | ||
| + | exiftool -d %Y-%m-%d_%H-%M-%S%%-c.%%e " | ||
| + | If you want to keep track of original filename and write extension lower case: | ||
| + | |||
| + | exiftool -d %Y%m%d_%H%M%S%%-c-%%f.%%le " | ||
| + | The same works also with the whole filename in lowercase: | ||
| + | |||
| + | exiftool -d %Y%m%d_%H%M%S%%-c-%%lf.%%le " | ||
| + | </ | ||
| + | |||
| + | |||
| ====== Remove EXIF data ====== | ====== Remove EXIF data ====== | ||
| <code bash> | <code bash> | ||