With ImageMagick, how can you see all available fonts?

depending on your imagemagick version: convert -list type # for IM older than v6.3.5-7 convert -list font # for newer versions also the output format changed… — update For OsX (Answer from Charles Merriam) if the command above does not produce any results: For a full tutorial with description see http://gothick.org.uk/2008/03/14/using-os-x-fonts-in-imagemagick/ for the rest &tldr: … Read more

Converting a PDF to PNG

You can use one commandline with two commands (gs, convert) connected through a pipe, if the first command can write its output to stdout, and if the second one can read its input from stdin. Luckily, gs can write to stdout (… -o %stdout …). Luckily, convert can read from stdin (convert -background transparent – … Read more

What is the difference for sample/resample/scale/resize/adaptive-resize/thumbnail operators in ImageMagick convert?

resize -resize 400×300+20+30 (like the -scale and -sample examples below) converts an input to an output image which has the pixel dimensions of 400×300. It also shifts the output by 20 pixels to the right and by 30 pixels to the bottom. Additionally, there are a few more differences to -scale: -resize does support an … Read more

Batch resize images and output images to new folder with ImageMagick

“Mogrify” should be called from the directory with the original thumbnails, while the -path parameter is for pointing target directory. mkdir public_html/images/new-thumbs cd public_html/images/thumbs magick mogrify -resize 16×12 -quality 100 -path ../new-thumbs *.jpg http://www.imagemagick.org/Usage/basics/#mogrify The last arguments are the list of files, so you can filter by name 1-*.jpg for example.