meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:multimedia:images [2017/04/22 23:27] niziaklinux:multimedia:images [2024/02/27 10:07] (current) niziak
Line 1: Line 1:
 +====== Convert to JPG =====
 +
 +<code bash>mogrify -format jpg *.bmp</code>
 +
 +
 +====== Convert images to PDF =====
 +<code bash>convert pages_*.png final.pdf</code>
 +<code bash>convert pages_*.png -resize 50% -compress jpeg -quality 75 final.pdf</code>
 +
 +
 +====== merge PDFs ======
 +<code bash>pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf</code>
 +
 +====== 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&Wimage
 +
 +convert normal*.png final.pdf
 +</code>
 +
 +One liner:
 +<code bash>
 +convert -density 300 scanned.pdf -monochrome output.pdf
 +convert -density 300 scanned.pdf -normalize -threshold 70% output.pdf
 +</code>
 +
 ====== Rename images to EXIF date ====== ====== Rename images to EXIF date ======