CHAPTER 4
Image Handling
HTML and CSS have developed to such an extent that the depth and variety of features available to a web developer have never been greater. But when it comes to images and manipulating them, there’s not a lot you can do other than resize them in-browser (not a true resize, more of a squash or a stretch) and add borders. True, using JavaScript you can overlay one image on another and blend them by making one image semitransparent, but that’s about the extent of it.
That’s where PHP comes to the rescue, thanks to the GD library of image functions, which most implementations of PHP now include by default. For example, the ...
Get Web Developer's Cookbook 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.