Index: temp/trunk/html/products/detail_image.php
===================================================================
--- temp/trunk/html/products/detail_image.php	(revision 5934)
+++ temp/trunk/html/products/detail_image.php	(revision 9168)
@@ -41,6 +41,7 @@
 	$objPage->tpl_height = $_GET['height']; 	
 } else {
-	$objPage->tpl_width = LARGE_IMAGE_WIDTH;
-	$objPage->tpl_height = LARGE_IMAGE_HEIGHT;
+	list($width, $height) = getimagesize(IMAGE_SAVE_URL . $arrRet[0][$image_key]);
+	$objPage->tpl_width = $width;
+	$objPage->tpl_height = $height;
 }
 
