11 examples for convert
# Clean up a whiteboard image. # (via lelandbatey on www.reddit.com/r/commandline) convert inputfile -resize %50 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 outputfile
# convert all PNGs in the current directory to a maximum dimension of 256x256 and name the copy accordingly for f in *.png; do convert -resize 256x256 "$f" "${f%.png}_256x256.png"; done
# Adds a large, yellow date/time stamp to the South-East corner of picture original.jpg convert original.jpg -gravity SouthEast -font Arial -pointsize 72 -fill yellow -annotate +100+100 "%[exif:DateTimeOriginal]" stamped.jpg
# Minfify image # your_comment_here convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% original_image.ext minified_image.ext
# Crop image.png to a size of 900x400 from x offset 50 and y offset 310 where offset starts from the top left corner. convert image.png -crop 900x400+50+310 image_cropped.png
# extract the third part of the right of a tri fold leaflet you can change the 1170 to move the X and the 0 after the + to the y convert -verbose -density 150 trifold.pdf -quality 100 -sharpen 0x1.0 -crop +1170+0 trifoldcover.png
# extract all cover page from a tri fold leaflet with multiples pdf for f in *.pdf; do convert -verbose -density 150 "$f" -quality 100 -sharpen 0x1.0 -crop +1170+0 "$f.png" ; done