$height) { $y = 0; $x = ($width - $height) / 2; $smallestSide = $height; } else { $x = 0; $y = ($height - $width) / 2; $smallestSide = $width; } imagealphablending($myImage, true); $offset = 10; // copying the part into thumbnail $thumbSize = 162; $thumb = imagecreatetruecolor($thumbSize, $thumbSize); imagecopyresampled($thumb, $myImage, $watermark, $thumbSize, $thumbSize, $smallestSide, $smallestSide); //final output header('Content-type: image/jpeg'); imagejpeg($thumb, 'upload/thumbs/'.$_FILES['file']['name']); header("location:gallery_edit.php?upld=1"); }else{ header("location:gallery_edit.php?slt=1"); } } ?> <?php include("title.php"); ?>

UPLOAD PHOTOS
Your Picture has been uploaded!
Please Browse the picture first!
Picture Category:
Title:
Note: Please Use only jpg images
Picture:
Close