PHP Solutions

Chapter 8

The theme of this chapter is thumbnail images.

Solution Index

PHP Solution 8-1
Calculating the scaling ratio
Using getimagesize() to get the height and width of an image and comparing them to set constants to determine the proper ratio.
PHP Solution 8-2
Creating a scaled-down copy
Taking an original image and creating a thumbnail and saving it in a unique location.
PHP Solution 8-3
Merging the image upload and resizing scripts
Making a thumbnail when the file is uploaded.
Note: This will not upload anything
PHP Solution 8-4
Saving the uploaded original and scaled-down version
I did not do this exercise