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

 
Developer Updates  
Free Website Content 
 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? 
Google.com  
PHP

A Close Look at the GD Library in PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 6
    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:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    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
     

       

    PHP ARTICLES

    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek