PHP Classes

Black image

Recommend this page to a friend!

      Easy Resize Image  >  All threads  >  Black image  >  (Un) Subscribe thread alerts  
Subject:Black image
Summary:returning blank black image
Messages:1
Author:Baljit karwal
Date:2013-10-21 21:17:32
 

  1. Black image   Reply   Report abuse  
Picture of Baljit karwal Baljit karwal - 2013-10-21 21:17:32
Hi, I am trying to use this library and just adding this:
$string = fread ( fopen ( $_FILES["myfile_".$i]["tmp_name"], "rb" ), filesize ( $_FILES["myfile_".$i]["tmp_name"] ) );
$resizeObj = new resize($string);
$resizeObj -> resizeImage(800);
$resizeObj -> saveImage($output_dir.$cleanfilename, 500);

its creating a blank image with $string even if I am not using $string then also. Any suggestions??

Thanks
Baljit