Skip to content

PHP Class for resize and create, generate thumbnails. Supports GIF, JPG (JPEG), PNG and BMP images.

License

Notifications You must be signed in to change notification settings

halojoy/Thumbnail-Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.'">';

?>