Image Resize
ImageResize is a small PHP library to resize images. Size of the image can be increased or decreased by keeping the aspect ratio of the image as it is.
Path : https://github.com/romilgoel/ImageResize
This library is pretty simple in usage.
Step 1: Load the library
include_once("ImageResize.php");Step 2: Image to be resized
$input = "inputImage.png";Step 3: Output Image
$output = "outputImage.png";Step 4: Take the object of the library
$resizeObj = new ImageResize($input);Step 5: Resize the image to the dimension you want
$resizeObj->resize($width = 200,$height = 300);Step 6: Output the image
$resizeObj->output($output);
No comments:
Post a Comment