Forum Moderators: coopster

Message Too Old, No Replies

PHP image resizing & uploading

image resizing is a pain

         

NogginAnimations

10:45 pm on Jan 6, 2008 (gmt 0)

10+ Year Member



Well, I'm happy with the script I've got at the moment, however users on my website have been complaining that their uploaded avatars take to long to appear..
This is because I have not yet included an image resizing script into the upload script.
I'd like the images to be limited to 75x75 pixels, and I've tried integrating the scripts I've seen elsewhere into the equation, but I can never seem to get it right..

Can anybody help me?

[edited by: NogginAnimations at 10:46 pm (utc) on Jan. 6, 2008]

[edited by: coopster at 6:40 pm (utc) on Jan. 10, 2008]
[edit reason] Removed unnecessary code [/edit]

phparion

3:19 pm on Jan 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't see any image resizing code in your posted script chunk.

Try few links on this Google search results page [google.com.pk]

there are several other security issues with image uploading also study them and secure your site from different kinds of hacks.

NogginAnimations

4:22 pm on Jan 10, 2008 (gmt 0)

10+ Year Member



Most of those results end up with me having to install some heavy stuff..
is there a way I can do this with just a few lines of code?

PS: Yeah I took the resize stuff out of my original script because I had no idea what I was doing, really

coopster

6:45 pm on Jan 10, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], NogginAnimations.

Have you searched the forums here at WebmasterWorld yet? A quick search over these forums will turn up lots of little examples, including this thread on Uploading and resizing an Image with PHP [webmasterworld.com]