Link to home
Start Free TrialLog in
Avatar of befidled
befidled

asked on

Installing Imagemagick

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?

thanks,
Brian Fidler
Avatar of hernst42
hernst42
Flag of Germany image

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.
Avatar of befidled
befidled

ASKER

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

thanks.
brian
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial