====== Imagemagick ======
===== Tools =====
^ convert | convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. |
^ identify | describes the format and characteristics of one or more image files. |
([[http://linux.die.net/man/1/imagemagick|manpage]])
===== Verwendung =====
^ Option ^ Wirkung |
| **-alpha** remove | entfernt Transparenz |
| **-background** white | setzt weißen Hintergrund |
| **-trim** | schneidet den Rand des Bildes weg |
==== JPG → PDF ====
# general JPG to PDF
convert img1 img2 img3 ... out.pdf
# multiple JPGs to one PDF
convert -append img1 img2 img3 ... out.pdf
([[http://www.reddit.com/r/linuxquestions/comments/3261to/merge_multiple_jpgs_into_one_pdf/|Quelle [reddit]]])
==== PDF → JPG ====
# convert page 17 in 300dpi
convert -density 300 input.pdf[16] output.jpg
==== Qualität und Größe von JPGs in-place verringern ====
find -name "*.jpg" -exec mogrify -resize 75% -quality 80 {} \;
==== EXIF-Daten entfernen ====
find -name "*.jpg" -exec mogrify -strip {} \;