Web www.gerd-tentler.de
Version 2.3 (released Dec. 31, 2016) [Download]


Use this script to create thumbnails of JPG, PNG, and GIF images. It requires PHP incl. GD library and optionally ImageMagick and MySQL. Thumbnails are cached to increase performance.

If ImageMagick is installed, thumbnails will be created with ImageMagick because of the better quality. (Note: This script uses a system call for ImageMagick - this will not work in PHP safe mode!) If ImageMagick is not available, the GD library will be used instead. Please note that some GD versions don't support GIF images, and others don't support JPG images, so ImageMagick should always be the better choice.

Basically, the thumbnail type will be the same like the original, i.e. JPG images create JPG thumbnails, PNG images create PNG thumbnails, and GIF images create GIF thumbnails. If however ImageMagick is used, GIF images will always create PNG thumbnails. Same goes for GD libraries without GIF write-support.

Transparency of GIF and PNG images should be preserved in thumbnails.

Examples (click to view original image):

Original file: JPG, quality 60, 54 KB

Original file: PNG, 8 colors, 57 KB

Original file: GIF, 8 colors, 45 KB

This script was tested with PHP4/5 on Windows XP and PHP4 on SuSE Linux.