Help!

Or search support forum

What's Global Moxie?

Global Moxie specializes in mobile design strategy and user experience for a multiscreen world. We offer consulting services, training, and product-invention workshops to help creative organizations build tapworthy mobile apps and effective websites. We're based in Brooklyn, NY. Learn more.

On Shelves

Books by Josh Clark

Tapworthy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual

Moxiemail

Enter your e-mail to receive occasional updates:

ImageMagick is installed, so why won't Big Medium auto-size my images?

Question

I've installed the Image::Magick module for Perl on my server, so why doesn't Big Medium offer to auto-size my images.

Answer

There are two main libraries that need to be installed to make ImageMagick work properly with Perl programs: the ImageMagick library and the Image::Magick Perl module (a.k.a. "PerlMagick).

If Big Medium does not display an option to auto-size your images when you're loading or editing an image, that means that Perl encountered an error when it requested the Image::Magick Perl module, or could not find it. This could be caused by one of several issues:

  • The Image::Magick Perl module is not yet installed.
  • The Image::Magick Perl module is not the same version number as the ImageMagick library on your server.
  • The main ImageMagick library is not properly installed.
  • Your server is missing one or more additional libraries required by ImageMagick or PerlMagick to make things go.

One thing to check is that the version of the PerlMagick distribution corresponds to the ImageMagick distribution (e.g. PerlMagick 6.2.2 for ImageMagick 6.2.2).

If the versions appear to be in order but you're still having trouble, this typically indicates that the ImageMagick utility and/or the Image::Magick Perl module is incorrectly/incompletely installed. ImageMagick is rather complicated and has many dependencies, and even if you're getting some of its functions to work from the command line, it's possible that you do not yet have all of the necessary libraries installed.

To try to determine the precise problem, try uploading the following script to your server's cgi directory, setting its permissions to chmod 755 and running it from the browser:

#!/usr/bin/perl
use strict;
print "Content-type:text/plain\n\n";
eval { require Image::Magick };
print ($@ || 'Loaded OK');
exit;

If the script reports "Loaded OK," then all is well with the Image::Magick module. But you'll probably instead get some kind of error message that may help you to troubleshoot the problem with your ImageMagick installation.

For more help with ImageMagick, please consult the ImageMagick site: http://www.imagemagick.org/

Download Big Medium
Try it free for 30 days, or buy to unlock.

Listen Up

“I listen to what Josh Clark has to say.”
—Matt Legend Gemmell, developer, Instinctive Code

“Tapworthy is a great iPhone development book.”
—Joe Hewitt, creator of the Facebook iPhone app

“I snagged a copy of Josh Clark’s Tapworthy. Mmmm... that’s good interface.
—Boon Sheridan

More praise for Tapworthy