I am using this class:
class ImgResizer { function ImgResizer($originalFile = \'$newName\') { $this -> originalFile = $originalFile; } function resiz
I know this is very old thread, but I found PHP has imagescale function built in, which does the required job. See documentation here
Example usage:
$temp = imagecreatefrompng('1.png'); $scaled_image= imagescale ( $temp, 200 , 270);
Here 200 is width and 270 is height of resized image.