Share on Google+Share on Google+

About PHP GD

Advertisement
About PHP GD: In this tutorial you will get to know about PHP GD, The GD library is used to create dynamic image creation. GD is an open source code library, This tutorial also includes the steps by which you can enable the GD option of WAMP server.

What is PHP GD Library

GD: The GD graphics library is a developed by Thomas Boutell. Previously Gd stood for "GIF Draw" after some legal issues now it stood for "Graphics Draw". GD supports numerous languages like C, PHP, Tcl, Lua, REXX, Ruby etc. 

The GD library is used to create dynamic image creation. GD is an open source code library and written in 'C' and wrappers are available for Perl, PHP and other languages. GD can create images composed of lines, arcs, other images etc. It can used to create and manipulate image files in a variety of different image formats including GIF, PNG, JPEG, WBMP, and XPM etc. We can generate charts, graphics, thumbnails, etc. It can do some complex tasks  like complex graphic editing: grayscaling or applying other filters to a photo, anti-robot security image. Most common applications of GD involve web-site development.

 

Features of PHP GD Library:

  1. GD is an open source code library
  2. Written in 'C'
  3. Wrappers are available for Perl, PHP and other languages
  4. Create images composed of lines, arcs etc.
  5. Generate charts, graphics, thumbnails, etc
  6. It supports different image formats including GIF, PNG, JPEG, WBMP, and XPM etc
  7. It can do some complex tasks  like complex graphic editing: grayscaling etc.

 

How to enable GD option in WAMP:

i) Run WAMP server:

ii) Select PHP settings from PHP option:

 

iii) Check php_gd2 option, if it is unchecked (by default it is checked)

Advertisements

Posted on: October 28, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.