How to install Imagemagick on Ubuntu Linux

Use apt-get to install imagemagick

$ sudo apt-get install imagemagick

List binaries in imagemagick

$ dpkg -L imagemagick | grep bin

Check convert version

$ convert --version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP    

Create circle and rectangle using imagemagick

Run to following code to create a test image having circle and rectangle.

$ convert -size 200x120 xc:lightgray -fill green -stroke black -draw "circle 100,60 80,20"  -draw "rectangle 50,30 150,90"  image-magick-circle-rectangle.gif


Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments