PHP
  Home arrow PHP arrow A Close Look at the GD Library in PHP
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

A Close Look at the GD Library in PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2007-08-15

    Table of Contents:
  • A Close Look at the GD Library in PHP
  • Creating images from scratch with the GD library
  • An alternative way to create image streams from scratch
  • Generating dynamic streams from existing GIF images with the GD library

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Virtual Tradeshows by Ziff Davis Enterprise - A Unique Opportunity to Connect with IT Experts, Access Information, and Gain Insight on today's Technology

    A Close Look at the GD Library in PHP
    (Page 1 of 4 )

    The GD library comes bundled with both PHP 4 and PHP 5. While it is a popular library that has been around for a while, many web developers do not take full advantage of its capabilities. In this five-part series, we will take a close look at what the GB library can do for you, especially in the area of dynamically-generated graphics.

    Introduction

    PHP is a general-purpose, server-side scripting language which can be used to develop a plethora of applications, ranging from simple web form processing mechanisms, to complex, full-featured database-driven web sites. Its remarkable versatility, which makes it suitable for tackling quickly the development of a huge variety of projects, along with its extremely easy learning curve, have turned PHP into one of the languages web developers prefer to use.

    And frankly speaking, this is more evident than ever when it comes to exploring PHP's powerful capacities for generating images on the fly via its popular GD library. This PHP extension has been available for a long time to PHP developers, but quite frequently its functionality has been under appreciated, since the number of web applications that require the implementation of dynamically-generated graphics is rather limited.

    However, it's fair to mention that the GD library that comes bundled with PHP 4, and PHP 5 as well, can be extremely useful in situations where it's necessary to display a certain number of graphics that need to incorporate one or more dynamic components. This category includes statistic systems, image galleries, noisy images, etc., to name the most popular applications that truly can take advantage of the numerous benefits offered by the GD extension.

    Therefore, to summarize, it's very clear that generating dynamic graphics with PHP 4/PHP 5 can be quite useful for a number of specific PHP applications. Bearing this in mind, over the course of this series of approachable tutorials, I'll be taking a close look at the most useful functions of this graphical extension, complementing the theoretical descriptions with illustrative hands-on examples.

    In this manner, by the end of this series you'll be decently equipped to start incorporating the neat functionality provided by the GD library into your own PHP applications, assuming that your web projects eventually require the implementation of dynamically-generated graphics.

    Now that you know the topics that will be covered in this series of articles, it's time to start learning the numerous functions that come bundled with the GD extension. Let's begin this educational journey now!

    More PHP Articles
    More By Alejandro Gervasio


       · If you're a PHP developer who wants to learn how to use the mosts important...
     

       

    PHP ARTICLES

    - Comparing Files and Databases with PHP Bench...
    - Setting Up a Web-Based Image Gallery
    - Using Timers to Benchmark PHP Applications
    - Benchmarking Applications with PHP
    - Setting Up a Web-Based File Manager: PHPfile...
    - Developing a Modular Class For a PHP File Up...
    - Setting Up a Web-Based File Manager: bfExplo...
    - Defining a Custom Function for File Uploader...
    - Parsing Child Nodes with the DOM XML extensi...
    - Creating an Error Handling Module for a PHP ...
    - Accessing Attributes and Cloning Nodes with ...
    - Retrieving Information on Selected Files wit...
    - Handling HTML Strings and Files with the DOM...
    - Building File Uploaders with PHP 5
    - Working with Multiple Document Nodes with th...




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway