I am looking for a simple php script to upload images and if they are larger than a certain size (variable) then resize them to (variable).
There are a lot of free downloads but I am looking to preserve quality
of the image and have a maximum filesize (variable)
I would prefer if we could take any format gif tif jpeg and end up with a resized jpeg
I want them to be renamed also to say $picname
I will also pass the upload directory as $uploaddir
If the directory does not exist I need you to create it.
The upload must be secure and check for users trying to upload say to /etc/passwd using say is_uploaded_file(). Please descibe how else you might make it secure.
27 freelancere byder i gennemsnit $47 for dette job
Besides is_uploaded_file() checking values returned by getimagesize($filename) can prevent malicious use of script. Using convert (via exec()) will produce better scaled images than the php GD library.