Image Resize Simple class

Here is a sample class file for image resize.image-resize-class

imageResize.class

Download the File  save it in web root and add .php extension to the file  .

How to use ?

<?php

require_once(‘imageResize.class.php’); // Path to File

imagejpeg(imageResize::Resize($fileSavePath,$width,$height),$newFileName);

?>

$fileSavePath should be the pathname of source file. Say “uploads/arun.jpg”.

$newFileName this should be the source File name with path.  Say “uploads/thumb/arun.jpg”.

Any Doubt ?

About

me : yeay its me arun

Tagged with: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.