Computer Science Canada new image problems... |
Author: | Amailer [ Sun Nov 02, 2003 1:03 am ] | ||
Post subject: | new image problems... | ||
WAHTS WRONG...WHATS WRONG... |
Author: | octopi [ Sun Nov 02, 2003 2:38 pm ] |
Post subject: | |
$im is not defined....what error messages do you get? |
Author: | Amailer [ Sun Nov 02, 2003 5:17 pm ] |
Post subject: | |
Oh, hm it is...its... $im = "./img/test.jpg"; And no error messages :S! :S http://amailer.sourceforge.net/new_image.php |
Author: | octopi [ Sun Nov 02, 2003 6:17 pm ] |
Post subject: | |
what about your error logs? |
Author: | Amailer [ Sun Nov 02, 2003 6:23 pm ] | ||
Post subject: | |||
Hmm, not on my server so...idk. I think i got a diffrent gd dll then sourceforge. idk Ill try it on my server brb
|
Author: | octopi [ Sun Nov 02, 2003 6:26 pm ] | ||
Post subject: | |||
Oh, sourceforge uses linux, so it doesn't use dll files. Ask the admin's if there php version was compiled with gd support. "Is php on your servers complied with gd?" Or just put this in a file and see for your self
Check what version they have. |
Author: | Amailer [ Sun Nov 02, 2003 6:27 pm ] | ||
Post subject: | |||
But it dont' wrk on my own server its self :S and here, http://amailer.sourceforge.net/phpinfo.php HMM?
Why is it searchign for avatar.jpg??? avatar is a folder... C:/Program Files/Apache Group/Apache2/htdocs/img/Avatar/ |
Author: | octopi [ Sun Nov 02, 2003 6:35 pm ] |
Post subject: | |
Post the whole code, cause you can't expect me to find a problem when you only post a small part of it. |
Author: | Amailer [ Sun Nov 02, 2003 6:38 pm ] | ||
Post subject: | |||
In the images/avatar folder there are 3 images: theonetokill-avatar.jpg OneToKills2.jpg admin-avatar.jpg Basically it displays randome images that have been resized to 90x90 px |
Author: | octopi [ Sun Nov 02, 2003 6:40 pm ] |
Post subject: | |
Does images[] have any values.....if it doesn't then the program would just goto the Dir specified...and might try to add a .jpg extention to it. That would explain your error in the logs. |
Author: | Amailer [ Sun Nov 02, 2003 6:49 pm ] | ||||
Post subject: | |||||
It does, it works prefectly with out creating an image, ill show you.
that way it works, But, the other way it don't. http://termix-zero.ath.cx/pictures/new_image.php view its souce, i get:
|
Author: | Amailer [ Sun Nov 02, 2003 7:00 pm ] | ||
Post subject: | |||
Look...
|
Author: | octopi [ Sun Nov 02, 2003 7:28 pm ] |
Post subject: | |
Didn't you say $im was just a path name, and not an image resource? Do you understand what imagedestory() does? |
Author: | Amailer [ Sun Nov 02, 2003 7:53 pm ] |
Post subject: | |
the $im has the the image (eg. ./img/avatar/image.jpg) Either way, with and without the imagedestory() it does not work :SS:S |
Author: | octopi [ Sun Nov 02, 2003 10:57 pm ] |
Post subject: | |
Well...you were using imagedestory wrong... Look at your error's its telling you the problem...your trying to open a Jpeg image, that isn't a jpeg image. Theres nothing else I can do....you should check the paths, and stuff, and see exactly where its looking for the file, before you try and show the image. |
Author: | Amailer [ Sun Nov 02, 2003 11:10 pm ] |
Post subject: | |
Oh very odd, ill recreate that image and SAVE as JPG :S |
Author: | Amailer [ Mon Nov 03, 2003 9:53 pm ] | ||
Post subject: | |||
OK I GOT IT TO WORK FOR ME (MY SERVER!) http://termix-zero.ath.cx/pictures/new_image.php
WORKS ;D BUT NOT ON THE SOURCEFORGE SERVER HELP NOTE: THIS TIME IM USING PNGS! |
Author: | Amailer [ Mon Nov 03, 2003 9:56 pm ] |
Post subject: | |
NEVER MIND...WRONG DIR :S! EXCEPT THE QULITY IS VERY BAD...how to improve it? |