Image-Resize class for PHP

Resizing images in PHP is easier with Image-Resize class. You can use it to create thumbnail images or resizing big images to desired size.

To use, just include image.class.php to your PHP file or where you are using resizing function. Then create new variable with an iresize() class object then use functions which comes with Image-resize class.

Example usage;
<?php
  require "image.class.php";
  
  $resize = new iresize();
  $resize->img("test.jpg")->size("500x500")->render("test-resized.jpg");
?>

Explaination;
iresize->img($source_filename) is where we are loading image to resize
->size("500x500") is for entering desired image size
->render("test-resized.jpg") is for final result. emptry/filename with extension

Download / Source