Join David Powers for an in-depth discussion in this video What next?, part of Resizing and Watermarking Images with PHP.
- View Offline
- [Voiceover] That concludes this look…at using PHP's GD functions to resize and watermark images.…We've used only a limited set of GD functions…but I think they're the most useful.…Many of the other functions require…specialist knowledge of image manipulation…and the same effects can be achieved more easily…in modern browsers using CSS filters and blend modes.…But if you're involved in building responsive websites…the resize images class in chapter 2…should simplify batch generation…of different size images for use…with the HTML picture element and source set attribute.…
All that remains is for me to thank you for watching.…I hope you've enjoyed this course and found it useful.…
Chapter 2 pulls everything together, using a custom PHP class that can batch process multiple images, automatically detect the correct MIME type, generate custom sizes, and add an optional watermark.
- Scaling an image with imagescale()
- Resizing an image with imagecopyresampled()
- Adding watermarks
- Correcting orientation
- Batch processing images