Index: temp/trunk/html/products/detail_image.php
===================================================================
--- temp/trunk/html/products/detail_image.php	(revision 9220)
+++ temp/trunk/html/products/detail_image.php	(revision 9221)
@@ -39,6 +39,11 @@
 
 if (sfIsInt($_GET['width']) && sfIsInt($_GET['height'])) {
+/*	
 	$objPage->tpl_width = $_GET['width'];
 	$objPage->tpl_height = $_GET['height']; 	
+*/
+	list($width, $height) = getimagesize(IMAGE_SAVE_DIR . $arrRet[0][$image_key]);
+	$objPage->tpl_width = $width;
+	$objPage->tpl_height = $height;
 } else {
 	list($width, $height) = getimagesize(IMAGE_SAVE_DIR . $arrRet[0][$image_key]);
