Searched refs:maxheight (Results 1 – 2 of 2) sorted by relevance
1171 * @param int $maxheight - maximal height of the image1176 function tpl_img($maxwidth = 0, $maxheight = 0, $link = true, $params = null) argument1184 [$w, $h] = (new MediaFile($IMG, $REV))->getDisplayDimensions($maxwidth, $maxheight, false);1189 if ($maxheight) $srcParams['h'] = $maxheight;1190 if ($maxwidth && $maxheight) $srcParams['fit'] = 1;
476 * @param int $maxheight479 function getResizeRatio($maxwidth,$maxheight=0){ argument480 if(!$maxheight) $maxheight = $maxwidth;489 }elseif($h > $maxheight){490 $ratio = $maxheight/$h;493 if($h >= $maxheight){494 $ratio = $maxheight/$h;