...

View Full Version : Image Upload and Resize (several times!)



the moose
11-02-2009, 03:02 PM
1. I need a script that allows me to upload an image into a folder (originals). The file name will be automatically generated by my script.

2. The image needs to then be resized to 800x600 (wxh) and saved into a different folder (large) with the same file name as the originals one.

3. The image needs to then be resized to 400x300 (wxh) and saved into a different folder (medium) with the same file name as the other two.

4. The image needs to then be resized to 200x150 (wxh) and saved into a different folder (small) with the same file name as the other three.

Please note, the respective widths and heights are being calculated, but those figures are the bounding boxes (if you like!!).

I have step 1 working beautifully - it works a treat. The file types that I am currently accepting for upload are jpg/jpeg/png/gif.

I am really struggling with steps 2 through 4 and just cant make the damned thing work!!

Any help would be great!

Cheers

The Moose

abduraooft
11-02-2009, 03:06 PM
I am really struggling with steps 2 through 4 and just cant make the damned thing work!!

Any help would be great! You may better to post a single issue at a time, along with the code that you've tried.

the moose
11-02-2009, 03:25 PM
You may better to post a single issue at a time, along with the code that you've tried.

I posted them like that above as they are basically the same issue.

Once it works for one, I assume I will just replace the figures for the other 2.

Cheers

The Moose

Rowsdower!
11-02-2009, 03:51 PM
This could have been googled, really. :rolleyes:

From the first hit on my google search:
http://www.theopensurgery.com/29/php-upload-and-resize-image-script/

the moose
11-02-2009, 04:53 PM
This could have been googled, really. :rolleyes:

From the first hit on my google search:
http://www.theopensurgery.com/29/php-upload-and-resize-image-script/

I had found that script and found that it didn't seem to flow/follow...or am I missing something??

Cheers

The Moose



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum