March 2012
Intermediate to advanced
392 pages
10h 17m
English
The most effective method of decreasing the size of an image is to create smaller versions, or thumbnails, of the original. You may easily create thumbnails with the LIB_thumbnail library, which you can download from this book’s website. To use this library, you will have to verify that your configuration uses the gd (revision 2.0 or higher) graphics module.[28] The script in Example 7-12 demonstrates how to use LIB_thumbnail to create a miniature version of a larger image. The PHP sections of this script appear in bold.
Example 7-12. Demonstration of how LIB_thumbnail may create a thumbnailed image
# Demonstration of LIB_thumbnail.php # Include libraries include("LIB_http.php"); include("LIB_thumbnail.php"); # Get image from ...
Read now
Unlock full access