Category Archives: Image upload

Simple upload image and create a thumbnail image

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.

(more…)

Watermark Uploaded Images On-The-Fly Using Overlay Image

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...)
Powered by Gewgley