Forum Moderators: coopster

Message Too Old, No Replies

resizing images

         

MWpro

6:47 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



I need a walkthrough or tutorial on how to resize images after they are uploaded with PHP. I have read similar threads on here about it, but the solutions seem to be too complicated for the simple thing I want to do. I am just looking for a very simple script that will resize the image that was uploaded and save it as another file.

timster

7:49 pm on Jul 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about this?

[phpfreaks.com ]

MWpro

11:29 am on Jul 13, 2004 (gmt 0)

10+ Year Member



That is a good link about GD in general; however, I did not see anything about resizing existing images and saving it as a different file.

henry0

12:03 pm on Jul 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If by using the tutorial as a beginning point you cannot build a script to your requirements
why do not you look for a "one size fits all" script out of a script-site such as "hotscript"
good luck

jatar_k

6:58 pm on Jul 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



are you just looking to resize it when it is uploaded?
have you managed any code that we could maybe help you with?

the logic is straight forward

1. create an upload form
2. post upload form to resizing and moving script
3. grab img from temp upload location and move to somewhere you can read and write to
4. resize the image
5. create a new image and save it

I think all of these are covered in this post
Image upload and Thumbnail Generator [webmasterworld.com] msg 29

it does multiple uploads and uses mysql but everything is there