Learn how to batch process images with the PHP GD functions. Watermark photos and generate different sizes ready for use in responsive web design.
Overview
Syllabus
Introduction
- Welcome
- What you should know before watching this course
- Using the exercise files
- Introducing the GD extension
- Scaling an image with imagescale()
- Getting an image's dimensions and MIME type
- Resizing an image with imagecopyresampled()
- Adding a text watermark
- Adding an image watermark
- Correcting an image's orientation
- Checking the MIME type and dimensions of a WebP image
- Converting to a different image format
- Project overview
- Setting up the class definition
- Checking source images and orientation
- Setting output sizes and quality
- Adding an optional watermark
- Generating the output images
- Using the script
- What next?
Taught by
David Powers