Article

  • 2 years

    2 years

    Reservo / Core

    1687

ImageMagick Install Including Additional Modules

Ubuntu Install:

sudo apt-get install imagemagick
sudo apt-get install php5-imagick


Support for RAW files:

sudo apt-get install libimage-exiftool-perl libjpeg-progs dcraw
sudo apt-get install ufraw-batch

CentOS Install:

yum install imagemagick

Support for RAW files:

rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
yum install libjpeg-turbo dcraw perl-Image-ExifTool
yum install ufraw


Test file convert on SSH Example:

sudo convert samples_files/sample.NEF -resize 100x100 samples_files/image.jpg

Sample Files Download:

- Left-hand side of this article.
- Extract and upload to /plugins/imageviewer/offline/imagemagick/
- Call this text url via a browser - http://yoursite.com/plugins/imageviewer/offline/imagemagick/test_thumbnails.php

 

Possible Issues:

TIFF directory is missing required "ImageLength" field

Resources:

https://forums.cpanel.net/threads/what-is-the-easiest-way-to-install-imagemagick-on-centos.124621/
http://ubuntuforums.org/archive/index.php/t-1016950.html
http://drewlustro.com/batch-convert-raw-images-to-jpeg-with-imagemagick-in-parallel/
http://www.imagemagick.org/discourse-server/viewtopic.php?t=21892
http://hallsoftech.blogspot.co.uk/2011/07/image-magick-error-missing-image.html
http://phpimagick.com/Imagick/adaptiveBlurImage

- Bug report for animated GIF issues in PHP v5.4 - https://github.com/mkoppanen/imagick/issues/20