When it comes to uploading photos, image cropping/resizing in a website, php GD library comes in handy. But if we need to add more complicated image processing functionalities to our website like merging multiple images, rotating or color processings like photoshop, php ImageMagick library helps to do such processes more simple with better quality output than php GD library. Availability The GD library is included by default since PHP 4.3 and available in most server environments. ImageMagick may not always be available and some of the hosting companies don't include it in their server. We can check the availability by using following code.