Freelance Projects

All freelance projects at One Location


Php Resize Img Upload Script  22.07.08

I have a wonderful php image resize and upload script that I had commissioned and written for me a few years ago.

It is quite complex, I pass it virtually all of the variables via the upload form, it resizes the image(s) to my desired sizes, renames them and saves them in a folder of my choice, it then passes me back with the new name and other information to a page provided in the upload form.

This all works perfectly except for two problems which I need addressing, one minor, one major.

The minor problem is that it needs to round the new height and width / proportion. As just once in a blue moon the proportion to resize seems to end up a recurring number and it can glitch. But this is very rare.

The major problem is that can only handle images up to 1000 pixels on it’s longest edge. It does have mb limits too, be these are acceptable.

An image 980 x 990 pixels can be uploaded, resized, saved, and returned fine.
An image 1001 x 990 pixels, or 100 x 1012 pixels, and the script falls over.

So I am looking for a replacement script that can address both of these problems, but also do what the current script does.

From the upload form, I want to send.
. The file to be uploaded
. The new name for the image
. The folder this is to be saved in
. The new width(s) for the image, ie 140, 250, 500
. the page address to be returned to once completed

The Upload script needs to ..
. Check that the image uploaded is a jpg image; this needs to work in both IE and Firefox, return a suitable error message if it’s not.
. Work out the new proportional height based on the required width(s), rounding to prevent errors.
. Resize the image
. I need to be able to have it resize and save the image in up to 4 sizes, and append their names accordingly.
.. i.e. I can send width1, width2, width3, width4 from the form, it resizes to the four sizes and saves them as refname.jpg, refname-2.jpg, refname-3.jpg, and to skip 4 if width4 had no value, etc.
. save the images in a folder passed from the form
. Pass the user back to a page given in the upload form, along with the new height, width and image name
. Any errors on route - pass an appropriate error message
. and of course handle images larger than 999 pixels high or wide.
. needs to work in both IE and Firefox

I know this could be server dependent, I will provide the selected developer with ftp access to a folder on one of my sites for testing purposes.

Please do not bid if you’re not sure you can address the 1000 pixel problem.

It has been suggested that this limit may be set at the server level, but the hosting company have no knowledge of this.

Johniew



If you liked this project, make sure you
Subscribe to Freelance Projects RSS feed!



    • Your Ads Here
    • Your Ads Here