Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Installing Imagemagick

Posted on 2004-11-08
Medium Priority
Last Modified: 2013-12-13
I've got a question regarding installing Imagemagick on my Redhat Fedora server. It seems as though I can download Imagemagick as a standalone installation or as a PHP API. I'm confused as to the advantages and disadvantages of the two solutions.

Can somebody give me the ads/disads?

If I install the standalone Imagemagick, is it still possible for me to access it's functions from PHP? If so how?

Brian Fidler
Question by:befidled
  • 2
LVL 48

Expert Comment

ID: 12528567
If you install it standalone then you will have no native support in php. It's only avaliable via exec('convert options ...').
There is also an php-module for those function, but I don't know how stable that extension is and if all options that are available on the commandline for convert are also available in PHP.

If you are planing to use it on a high-traffic-page you might use convert via shell-exec and add some caching, on a low-traffic site those thing can be don on the fly. Using convert via exec cause the overhead of spanning the convert-process but might give you more option.

Author Comment

ID: 12528662
So how exactly does the exec('convert options...') function work in PHP? Can you provide me with an example?

LVL 48

Accepted Solution

hernst42 earned 1000 total points
ID: 12530930

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question