$ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } // This resamples the image $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($url); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output the image imagejpeg($image_p, null, 100); } //works with both POST and GET $method = $_SERVER['REQUEST_METHOD']; if ($method == 'GET') { imageResize($_GET['url'], $_GET['w'], $_GET['h']); } elseif ($method == 'POST') { imageResize($_POST['url'], $_POST['w'], $_POST['h']); } // makes the process simpler function loadImage($url, $width, $height){ echo 'image.php?url=', urlencode($url) , '&w=',$width, '&h=',$height; } ?> 1903 Springfield Parts and Accessories
1 800 848  0901

03 Springfield Parts

View Shopping Cart
Home Feedback Orders Catalog Specials Links
Bookmark This Page!

Click on the Cart Icon to add an item to your Shopping Cart
See the Orders page for legal requirements, sales policies, shipping info etc.
If the description is highlighted in blue, you can click on it for a picture.


Click here to sign up       for our email sale flyers
To Top Of Page
Home Feedback Orders Catalog Specials Links
To Top Of Page
Equifax E-Business Site Contact Info You Are One of 16 Active Visitors!!
Click Here to download our Business Card and Print
Copyright 1996-2000 Chestnut Ridge Supply
Web Site Design
View Shopping Cart Satisfaction Guaranteed -MC / Visa
Or Your Money Back !