Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #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
  #2  
Old 10-08-2004, 07:01 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Oups, sorry 'bout that.

Very happy you spotted it, will upload a new version at once!

thank you // punkpixel
Reply With Quote
  #3  
Old 10-08-2004, 07:10 PM
andrew Offline
forum loafer
 
Join Date: Oct 2004
Posts: 1
no problem

Hey it's my pleasure. I'll be making a template for the site soon as well. It's great work you've done.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:02 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs