Chapter 14. Working with Images

A standard installation of PHP has many built-in functions for dynamically creating and manipulating images. With a few adjustments, you can expand the functionality even more. In this chapter, you learn the basics of creating and manipulating images using PHP functions:

  • How to modify PHP to increase image-related functionality

  • How to create a new image

  • How to modify existing images

Understanding the Image-Creation Process

Creating an image with PHP is not like creating an image with a drawing program: There’s no pointing and clicking or dragging buckets of color into a predefined space to fill your image. Similarly, there’s no Save As functionality, in which your drawing program automatically creates a GIF, JPEG, PNG, ...

Get Sams Teach Yourself PHP, MySQL and Apache: All in One, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.