Searched refs:maxwidth (Results 1 – 2 of 2) sorted by relevance
1170 * @param int $maxwidth - maximal width 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);1188 if ($maxwidth) $srcParams['w'] = $maxwidth;1190 if ($maxwidth && $maxheight) $srcParams['fit'] = 1;
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;