Archive for the ‘Image upload’ Category

Simple upload image and create a thumbnail image

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:

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.

(more…)

Tags: , ,
Posted in Image upload | Comments Off on Simple upload image and create a thumbnail image

Resize Uploaded Images Using PHP and GD Library

Monday, June 8th, 2009

This 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…)

Tags: , , ,
Posted in Image upload | Comments Off on Resize Uploaded Images Using PHP and GD Library

Watermark Uploaded Images On-The-Fly Using Overlay Image

Monday, June 8th, 2009

This script uses PHP and GD library functions to watermark uploaded images on the fly. You can use any transparent PNG image as the watermark source image (e.g. your company logo or a copyright notice). This image is then imprinted on the uploaded image. The script also creates a backup of the original image before applying watermark. (more…)

Tags: , , ,
Posted in Image upload | Comments Off on Watermark Uploaded Images On-The-Fly Using Overlay Image