Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8144257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:19:42+00:00 2026-06-06T13:19:42+00:00

Having used PHP GD for some time I have decided to move to Imagemagick.

  • 0

Having used PHP GD for some time I have decided to move to Imagemagick. The way of running it on the host is as follows:

$command = "/usr/local/bin/convert $commands";
exec($command);

Is there any way to be able to switch the implementation so that I can use the php Imagick extension (which seems more logical for me to code for)?

The site is hosted with Dreamhost.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:19:45+00:00Added an answer on June 6, 2026 at 1:19 pm

    I have lots of php with Imagemagick examples on my website and have started on some Imagick examples.

    As you know you can run Imagemagick through exec() which is the way I do it as I think it is simpler and has access to all the Imagemagick operators included in your version.

    There is Imagick built into php 5 which is slightly quicker than exec( ) but you will see from other posts it is not very well documented and quite hard to learn.

    I write my code like this which has the benifit of echoing the $cmd and checking it is what you wanted when using variables in the code.

    $cmd = " $input -resize 500x500 $output ";
    exec(" convert $cmd ");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with some code that used to work in PHP 4.X
Having used some PHP frameworks such as Codeigniter and Kohana for some smaller sites,
I've used jScrollPane before but I'm having some trouble getting it right this time.
I have a PHP application that I have been having some problems with, some
I'm not too used to ORM mapping, having come from a PHP background. I'm
Im having problems with classpaths. I have used them before with import but I'm
I used to have a small chat app(which was almost working), that uses PHP,
Having some trouble sending properly formatted HTML e-mail from a PHP script. I am
I'm having some difficulties getting the PHP libevent extension to break out of a
I want to test some PHP on my local machine running Windows XP Professional.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.