Reply to Re: imagecreatetruecolor error.

Re: imagecreatetruecolor error. new!
by taha, 11 years, 2 months ago
Hello.

I receive the error line imagecreatetruecolor.

Function name : imagecreatenew

Picture Adress : http://www.milenyum.tv/error/DSC_3398.JPG

My Upload Function :

function imageUpload($file, $upadres, $w, $h, $ratio_fill,$png = false) {
  $upload = new upload($file);
  if ($upload->uploaded) {
    $upload->file_new_name_body = md5($upload->file_src_name_body);
    $upload->file_auto_rename = true;
    $upload->image_resize = true;
    if ($h > 0) {
      $upload->image_x = $w;
      $upload->image_y = $h;
    } else {
      $upload->image_x = $w;
      $upload->image_ratio_y = true;
    }
    if($png)
      $upload->image_convert = 'png';
    if ($ratio_fill>0) {
      $upload->image_ratio_fill = $ratio_fill;
      $upload->image_background_color = null;
    }
    $upload->process($upadres);
  }
  return $upload->file_dst_name;
}


Please help.

ThanksReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important