View Single Post
  #1  
Old 10-08-2004, 06:58 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
change needed where ext == gif

Hey I set this GREAT program up for my wife and only had one minor (although illusive) problem.

I was getting an error anytime I uploaded a gif file-
Code:
Warning: imagejpeg(): supplied argument is not a valid Image resource in /raid0/home/maysaf/public_html/vixandco.com/admin/index.php on line 812
I managed to trace it back through the logic however for imagejpeg- the problem is on line 797, which states
Code:
 } else if ($ext == 'gif') {
        $img = @imagecreatefrompng($image_path);
}
So yeah- imagecreatefrompng isn't gonna work here. I changed it as follows:
Code:
 } else if ($ext == 'gif') {
        $img = @imagecreatefromgif($image_path);
}
and presto the world is beautiful again.


thanks for all your hard work! and I'm glad to be able to contribute.[/code]
Reply With Quote