How to Install ImageMagick on SLES 11 for Typo3

Written by Zac Vineyard

imagemagick logo

ImageMagick is an image manipulation tool that works hand-in-hand with Typo3. If you don't have it installed with Typo3, you'll likely notice quite a few problems with how images are handled by Typo3. To help remedy issues you might be having, here are instructions on how to install ImageMagick on SUSE 11.

Check if ImageMagick is Installed

Before we get started, let's check to see if ImageMagick might. somehow, magically, already be installed. To do that, type the following command into a terminal window:

# convert

If ImageMagick is installed, you should see a print-out of the manual for convert. Otherwise, you'll just get a statement that convert isn't available.

Install ImageMagick

The following list is a set of commands you need to execute on command line to install ImageMagick on SUSE 11.

Step 1: Download ImageMagick

# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

Step 2: Unpack the Download

# gunzip -c ImageMagick.tar.gz | tar xvf -

Step 3: Change Directories

# cd ImageMagick-6.?.?

Step 4: Configure

# ./configure

Step 5: Make & Install

# make; make install

Check Read Capability

Once you have ImageMagick installed, you'll want to check and make sure that ImageMagick (and Typo3) can read the primary image formats used on your site, i.e. jpg and png. There are two ways to determine whether or not ImageMagick can read those image types. The first is to log into your Typo3 Install Tool and run the read image test under the "Basic Configuration" menu item. If ImageMagick can read those formats, you should see them highlighted in green, as seen in the image below. If your image formats are highlighted in green, ImageMagick should now be working for you.

typo3 can't read jpg or png image type format

It ImageMagick can't read those formats, you are most likely missing some libraries on your system that let you read those image formats, or need to install the proper delegate for the file format. To verify if you need those delegates, you can type the following command into the terminal:

# convert -list configure

Look for "DELEGATES" as an item in the command output. Next to that item will be listed all of the file extensions ImageMagick is configured to use. If your image format isn't listed, you need to add the proper delegate for the file format. All of the delegates can be found at http://www.imagemagick.org/download/delegates/.

If needed, Install Delegates

The following list is a set of commands you need to execute on command line, from the location of your recently downloaded delegate archive, to install a delegate for ImageMagick on SUSE 11.

Step 1: Unpack the Download

# gunzip -c jpegsrc.v8b.tar.gz | tar xvf -

Step 2: Change Directories

# cd jpegsrc.v8b

Step 3: Configure

# ./configure

Step 4: Make & Install

# make; make install

Step 5: Update Libraries

# ldconfig

NOTICE: After installing delegates, you may need to re-install ImageMagick using the steps described at the top of this post.

Troubleshooting

If for some reason you can't run convert on the command line after you install ImageMagick, you need to make sure that the ImageMagick libraries are being hooked by the system. To do that, create a file titled "imagemagick.conf" in /etc/ld.so.conf.d and add the following line to the file:

/usr/local/lib/

Then run the following command to update the library database:

# ldconfig

Finished

After you've walked through all the steps above, ImageMagick should now be working well on your system.