J
Joshua E
Guest
Okay, I have an admin panel through MySQL that posts content to a database that PHP reads from, and part of it is you provide a URL to a screenshot. If the screenshot is so big that it throws our layout out of whack, we take it over to Imageshack.us, use their URL resizer (which means that my project has to be possible somehow), and then use their link. But we want to cut down that time.
So what I'm looking for is a script that will meet all this:
- Be able to check if an image is too large (Larger than say 500px width) and then resize it...otherwise, just leave it alone
- Possibly do the above with if statements
- NOT have to store the image on my server (I want this all to be possibly done by just PHP being able to constrain proportions and deliver that data to <img src> tags or similar) - meaning, the image stays on the remote server at all times...I don't have the space to save it myself.
I tried doing this with things like getimagewidth but it wouldn't take it because I didn't use true color or something ... any help would be appreciated!
So what I'm looking for is a script that will meet all this:
- Be able to check if an image is too large (Larger than say 500px width) and then resize it...otherwise, just leave it alone
- Possibly do the above with if statements
- NOT have to store the image on my server (I want this all to be possibly done by just PHP being able to constrain proportions and deliver that data to <img src> tags or similar) - meaning, the image stays on the remote server at all times...I don't have the space to save it myself.
I tried doing this with things like getimagewidth but it wouldn't take it because I didn't use true color or something ... any help would be appreciated!