Posts Tagged ‘resize’
Monday, June 8th, 2009
Here is an example for a simple way of uploading an image and then create a thumbnail image automatically. This PHP script does the following:
- it uploads the image to a temporary location,
- then it copies the uploaded image to a permanent location,
- the script then creates a smaller thumbnail image and saves this to a special thumbnail image location
This PHP script is set up only to allow the upload of JPG formatted images. But with some PHP knowledge you will be able to change this.
Monday, June 8th, 2009This script demonstrates the use of GD library to generate thumbnails. The script first saves the uploaded image in a specific location, it then generates a thumbnail version of the image and finally saves the generated thumbnail image in JPEG format. (more…)