It provides three alternatives for generating the thumbnails using three different methods: GD extension, ImageMagick program or extract from metadata in EXIF format from JPEG images.
The class can either serve the thumbnail image or store it in a file.