I have written a content management system which involves uploading pictures. Rather than limiting the file upload size which confuses people with basic computer knowledge because they can't resize their images, I would like the images to resample to a certain maximum width on upload.
eg. someone plugs their 5megapixel camera in, takes a picture off it and the uploads it. Obviously huge I want it to resample to about 400pixels wide keeping its proportions constrained.
Is this possible?
My upload code is as follows:
$update = " update table_customers set picture1='$image' where username='$user_details'";
$query = mysql_db_query($db, $update, $connection);
check_mysql($query);
client_message("Photo 1 Uploaded Sucessfully","If you would like to upload another photograph, choose another upload slot");
} else {
$errmsg = "Your photograph is too large! Please resize and try again.";
}
}
__________________
Aye!
Last edited by Deansatch; 08-11-06 at 02:44 PM.
Reason: missed the closing php tag