Thumbnail-Creator
PHP Class for resize and create, generate thumbnails.
Supports GIF, JPG (JPEG), PNG and BMP images.
Will preserve transparency for GIF and PNG.
(JPG and BMP are not transparent.)
For BMP thumbnails you need PHP >= 7.2.
The class is very easy to use and do the generation of thumbnail.
Have a look at the examples!
<?php
require 'class/Thumbnail-Creator.php';
$rez = new Thumbnail();
$image = 'images/foxes.bmp';
$thumb = $rez->resize($image);
echo '<img src="'.$thumb.'">';
?>