O'Reilly logo

PHP and MySQL Recipes: A Problem-Solution Approach, Second Edition by Frank M. Kromann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required