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
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