View Single Post
Old 06-02-2003, 06:40 PM   #2 (permalink)
saline
I am red.
 
saline's Avatar
 
Join Date: Feb 2003
Location: Cleveland, OH
Posts: 139
saline is on a distinguished road
Here's a question, and keep in mind I know close to nothing about php, but.

There's this little dealy:
Code:
$srcimage = imagecreatefromjpeg($QUERY_STRING);
Now I don't know imagecreatefromjpeg from a hole in the wall, is that built in or did you write it? Either way, what file extention does it use for the final image .jpeg or .jpg ?

because later, when displaying the images, you look only for .jpg

in the thumbs.php here:
Code:
 if($file != '.' && $file != '..' && stristr($file,"jpg"))
Perhaps it's not finding the right pictures because you're looking for the wrong extention (.jpg instead of .jpeg)?

In the same vein when you have an error it seems like you're creating a .gif and then again looking for .jpg?

But then again I could be way off, good luck!
__________________
http://home.cwru.edu/~cak19

It's my homepage with odd little bits of javascript.
saline is offline   Reply With Quote