convert

Imagemagick image conversion tool.

Install

All systems
curl cmd.cat/convert.sh
Debian Debian
apt-get install graphicsmagick-imagemagick-compat
Ubuntu
apt-get install graphicsmagick-imagemagick-compat
Alpine
apk add imagemagick6
Arch Arch Linux
pacman -S imagemagick6
image/svg+xml Kali Linux
apt-get install graphicsmagick-imagemagick-compat
OS X
brew install [email protected]
Raspbian
apt-get install graphicsmagick-imagemagick-compat
Docker
docker run cmd.cat/convert convert powered by Commando

Imagemagick image conversion tool.

  • Convert an image from JPG to PNG:
    convert image.jpg image.png
  • Scale an image 50% its original size:
    convert image.png -resize 50% image2.png
  • Scale an image keeping the original aspect ratio to a maximum dimension of 640x480:
    convert image.png -resize 640x480 image2.png
  • Horizontally append images:
    convert image1.png image2.png image3.png +append image123.png
  • Create a gif from a series of images with 100ms delay between them:
    convert image1.png image2.png image3.png -delay 100 animation.gif

© tl;dr; authors and contributors