Searched refs:maxwidth (Results 1 – 2 of 2) sorted by relevance
1175 * @param int $maxwidth - maximal width of the image1181 function tpl_img($maxwidth = 0, $maxheight = 0, $link = true, $params = null) argument1193 if ($maxwidth && $w >= $maxwidth) {1194 $ratio = $maxwidth / $w;1200 } elseif ($maxwidth && $w > $maxwidth) {1201 $ratio = $maxwidth / $w;
475 * @param int $maxwidth479 function getResizeRatio($maxwidth,$maxheight=0){ argument480 if(!$maxheight) $maxheight = $maxwidth;487 if($w >= $maxwidth){488 $ratio = $maxwidth/$w;495 }elseif($w > $maxwidth){496 $ratio = $maxwidth/$w;