babygekko
Joined: 21 Sep 2006
Posts: 1
Location: Kuta, Bali, Indonesia
|
| Posted: Thu Sep 21, 2006 4:31 am Post subject: Quick fix for image size problem in Products/Inventory |
|
|
Hi,
Did you ever notice that the image does not size properly according to the image specs when you view a single image in the Inventory/Products module? It's just set to 450 (width) and 300 (length) Here's the fix in file /include/utils/DetailViewUtils.php:
Start from line 451:
================================
$image_lists .=implode(',',$images).');</script><script language="JavaScript" type="text/javascript" src="modules/Products/Productsslide.js"></script><script language="JavaScript" type="text/javascript">Carousel();</script>';
$label_fld[] =$image_lists;
}elseif(count($image_array)==1)
{ // PRANA begin fix
$pranaimg = $imagepath_array[0].$image_id_array[0]."_".$image_array[0];
getimagesize ($pranaimg, $prana_image_info);
$label_fld[] ='<img src="'.$pranaimg.'" border="0" '.$prana_image_info[3].'>';
}else
{
$label_fld[] ='';
} |
|