Skip to content

Image Magick

Installing image magick on linux

For Ubuntu

sudo apt install imagemagick

For CentOS

sudo dnf install ImageMagick

:::info EPEL should be enabled in the repositories :::

Check Version

convert --version

Get Help

identify -help

Get information of any image

identify /path/to/image

Get more information of image

identify -verbose /path/ti/image

Get width and height of image

identify -format '%wx%h' /path/to/file

Resize images

convert input.jpg -resize 100x100 output.jpg

Convert image file format

convert input.jpg -resize 100x100 output.png