Jump to content

Imagemagick versus GD for PHP applications...


cgm225

Recommended Posts

I use a mixture of both, just because some tasks are easier and quicker in one rather than the other. I find things like captchas easier to code using GD, but doing simple things such as re-size/scaling and cropping a lot quicker and easier using ImageMagick.

 

I guess GD has the advantage of being able to dump its output to the browser easier, which is good for on-the-fly images where as ImageMagick would probably be better for batch processing or more processor heavy tasks as I don't think PHP waits for IM finish what it's doing before continuing with the rest of the script - I may be wrong on that though, as some execution functions have the option to output the CLI result...

Link to comment
Share on other sites

imagemagick is although powerful than GD but GD is native in php while imagemagick must be used through shell commands. So, GD is available in most servers.

I use a mixture of both, just because some tasks are easier and quicker in one rather than the other. I find things like captchas easier to code using GD, but doing simple things such as re-size/scaling and cropping a lot quicker and easier using ImageMagick.

There are some really cool classes for GD available at phpclasses that can make these image manipulation a breeze.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.