Creating Dynamic Images from PHP

In today’s tutorial, we will take a further look at the kinds of things that you can do with PHP using one of the PHP extensions. As we have mentioned before, PHP is easily extended to include support for a variety of different 3rd party file types and protocols. Today we will start looking at an extension that lets you create images – the GD extension. This is easy to install (instructions are given) and a tutorial project is included, involving getting the EXIF data of a digital camera image, grabbing a thumbnail through the free GD library.
$2.79
- OR -

Overview

Table of Content:

  • A bit about the GD image library
  • Why would we want to be able to do this?
  • Setting PHP up to work with images
  • How to enable the GD extension
  • Enabling the Exif extension
  • Digital Cameras
  • Finding out the image type
  • Reading header information
  • Retrieving the thumbnail from the image

Allan Kent

Allan KentAllan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.

You can catch up with him at his website http://www.mediafrenzy.co.za.

See All Postings From Allan Kent >>

Reviews

Be the first to write a review

You must me logged in to write a review.