Skip to content

ImageMagick on Windows

Setup

  • Download from iamgemagick.org

    • select in ImageMagick-7.0.10-60-Q16-HDRI-x64-dll.exe “Windows Binary Release”
  • Double click downloaded file and follow wizard instruction

    • On “Select Additional Tasks”, check “Install legacy utilities(e.g. convert)”

  • After installation finished, you need to re-run gitbash terminal.

Command line examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
   list formats:
      convert -list format
   convert JPG to PNG:
      convert input.jpg output.png
   convert all JPGs to PNGs: 
      mogrify -format png *.jpg
   convert SVG to PNG at 1000 DPI:
      convert -density 1000 -units PixelsPerInch input.svg output.png
   compress JPG to quality 50% width 1000:
      convert input.jpg -quality 50% -resize 1000 output.jpg
   compress all JPGs to quality 50% width 1000:
      mogrify -quality 50% -resize 1000 *.jpg

Ref.http://academy.cba.mit.edu/classes/computer_design/image.html

link to FabAcademy2020 page


Last update: February 21, 2021