© Frank M. Kromann 2016

Frank M. Kromann, PHP and MySQL Recipes, 10.1007/978-1-4842-0605-8_8

8. Dynamic Imaging

Frank M. Kromann

(1)Trabuco Canyon, California, USA

Images uploaded to a web site might not always be usable as is. Images that come directly from a smart phone or high-resolution digital camera might have resolution/size that is too high to use on a web site. If the image is to be used as a profile image or thumbnail it might be a good idea to scale it down or crop a section out in order to get rid of irrelevant areas of the image. Scaling and cropping can be done with CSS, but that still requires the full image to be downloaded to the client and that would be a waste of bandwidth.

Using the GD extension in PHP makes it possible to perform ...

Get PHP and MySQL Recipes: A Problem-Solution Approach, Second 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.