ImageMagick

 
 
ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, ICO, PNG, BMP, JPG and JPEG.

Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that can be freely used, copied, modified and distributed. Its license is compatible with the GPL. It runs on all major operating systems.

More information about ImageMagick can be found at: http://www.imagemagick.org







Installing ImageMagick 7.0.5-9 on macOS Sierra



Information
PHPThumb requires ImageMagick to be installed on your environment.

In file phpthumb.config.php you need to set $PHPTHUMB_CONFIG['imagemagick_path']
In *nix environments set $PHPTHUMB_CONFIG['imagemagick_path'] = null, if "convert" is in the path '/usr/local/bin/convert'

Operating system used
macOS Sierra

Software prerequisites
none

Procedure
  1. Open a terminal and type: brew install imagemagick

  2. After installation check if ImageMagick is installed. Check if file /usr/local/bin/convert exists.

  3. To test if ImageMagick works, create a gif file, type: /usr/local/bin/convert logo: logo.gif

    The image logo.gif will be created in the directory where you entered the command. The image will look like:

    ImageMagick check installation

  4. You can also try the following commands on the created logo.gif file, type:
    /usr/local/bin/identify logo.gif

    You should see:
    logo.gif GIF 640x480 640x480+0+0 8-bit sRGB 256c 28576B 0.000u 0:00.000

    You can also try: /usr/local/bin/display logo.gif

    You should see:
    Version: ImageMagick 7.0.5-9 Q16 x86_64 2017-05-29 http://www.imagemagick.org
    Copyright: © 1999-2017 ImageMagick Studio LLC
    :


  5. Show your installed ImageMagick version, type: /usr/local/bin/convert --version

    You should see:

    Version: ImageMagick 7.0.5-9 Q16 x86_64 2017-05-29 http://www.imagemagick.org
    Copyright: © 1999-2017 ImageMagick Studio LLC
    License: http://www.imagemagick.org/script/license.php
    Features: Cipher DPC HDRI Modules
    Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib