Imagemagick is a collection of small programs used for manipulating images in multiple formats. The way I use it is from the command line to process multiple files with a single command and many parameters. Used for resizing images, rotating, changing brightness, extracting sub‑images, creating mosaics, converting formats... It is impossible to remember all the options. I save my scripts in text files and reuse them for new tasks. One of the most important sub‑programs is Mogrify. Use it on a Linux console or on a Cygwin console on Windows.
mogrify -resize 50% *.jpg
mogrify -resize 900 *.png
mogrify -format jpg *.png
Montage with names: montage -label %t * show -pointsize 20 -tile 2x3 -geometry 800x700+10+10 out.jpg montage -label "%t" -pointsize 24 *.jpg -tile 4x4 -geometry 648x486+5+5 CP.jpg Convert to A3 paper: convert -quality 100% out.jpg -rotate -90 -page A3 out2.pdf
#!/bin/bash i=1 for file in *.JPG do i=$((i+1)) mv "$file" "$i.JPG" done # Imagemagick montage -label "%t" *.JPG -tle 3x3 -geometry 512x384+30+30 Reportatge.pdf
#! /bin/bash # Crop photo in 6 parts # pere 2015-05-27 mkdir new ls -1 | grep ".jpg" > list.txt for foto in $(less list.txt); do convert $foto -crop 320x320+65+65 new/$foto-11.jpg; convert $foto -crop 320x320+385+65 new/$foto-12.jpg; convert $foto -crop 320x320+65+385 new/$foto-21.jpg; convert $foto -crop 320x320+385+385 new/$foto-22.jpg; convert $foto -crop 320x320+65+705 new/$foto-31.jpg; convert $foto -crop 320x320+385+705 new/$foto-32.jpg; done
# Rotate 90 degrees left all images # in the same directory # 2015-12-06 #!/bin/bash for file in *.jpg; do convert -rotate -90 "$file" "$file" done
Easier:
mogrify -rotate 90 image_name.jpg