© David Powers 2019
David PowersPHP 7 Solutionshttps://doi.org/10.1007/978-1-4842-4338-1_10

10. Generating Thumbnail Images

David Powers1 
London, UK

PHP has an extensive range of functions designed to work with images. You’ve already met one of them, getimagesize(), in Chapter 5. As well as providing useful information about an image’s dimensions, PHP can manipulate images by resizing or rotating them. It can also add text dynamically without affecting the original and can even create images on the fly.

To give you just a taste of PHP image manipulation, I’m going to show you how to generate a smaller copy of an uploaded image. Most of the time you’ll want to use a dedicated graphics program, such as Adobe Photoshop, to generate thumbnail images ...

Get PHP 7 Solutions: Dynamic Web Design Made Easy now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.