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: , , ,
Posted in PHP

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>