Installing Imagemagick

Posted on 2004-11-08
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
    LVL 48

    Expert Comment

    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.
    LVL 1

    Author Comment

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

    LVL 48

    Accepted Solution


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now