image upload and resize 1.0

Operating systemsOS :
Program licensingScript Licensing : GPL - GNU Public License
CreatedCreated : Aug 30, 2006
Size downloadDownloads : 5
Program licensing
Thank you for voting...

This little script resizes your uploaded image on the ...

This little script sizes your uploaded image on the fly and saves it as thumbnail.
Respects aspect ratio and doesn't distort your image
if$_POST['Submit']))
{
$size = 150; // the thumbnail height
$filedir = 'pics/'; // the directory for the original image
$thumbdir = 'pics/'; // the directory for the thumbnail image
$prefix = 'small_'; // the prefix to be added to the original name
$maxfile = '2000000';
$mode = '0666';
$userfile_name = $_FILES['image']['name'];
$userfile_tmp = $_FILES['image']['tmp_name'];
$userfile_size = $_FILES['image']['size'];
$userfile_type = $_FILES['image']['type'];
$_FILES['image']['name']))
{
$prod_img = $filedir. $userfile_name;
$prod_img_thumb = $thumbdir. $prefix. $userfile_name;
move_uploaded_file($userfile_tmp, $prod_img);
chmod ($prod_img, octdec($mode));
$sizes = getimagesize($prod_img);
$aspect_ratio = $sizes[1]/$sizes[0];
if ($sizes[1]
. $prod_img_thumb. '" width="'. $new_width. '" heigt="'. $new_height. '">
;
}else{
echo '
. '$_SERVER['php']. '" enctype="multipart/form-data">
;
}
?

image upload and resize 1.0 scripting tags: image, directory, image resize, prefix, prodimg, snippet, thumbnail, sizes, image upload, prodimgthumb, php, original, image upload and resize, php snippet. What is new in image upload and resize 1.0 software script? - Unable to find image upload and resize 1.0 news. What is improvements are expecting? Newly-made image upload and resize 1.1 will be downloaded from here. You may download directly. Please write the reviews of the image upload and resize. License limitations are unspecified.