Lines Matching defs:ratio
242 $ratio = 1;
246 $ratio = $maxwidth / $w;
248 $ratio = $maxheight / $h;
252 $ratio = $maxheight / $h;
254 $ratio = $maxwidth / $w;
258 if ($ratio) {
259 $w = floor($ratio * $w);
260 $h = floor($ratio * $h);
265 foreach (array(0.1, 0.25, 0.5, 0.75, 1) as $ratio) {
267 'w' => floor($ratio * $originalwidth),
268 'h' => floor($ratio * $originalheight),
269 'ratio' => $ratio,
372 <?php echo tpl_getLang('other_resolutions') ?>: <?php foreach ($other_sizes as $size): ?> <a href="<?php echo ml($IMG, array('cache' => $INPUT->str('cache'), 'rev' => $REV, 'w' => $size['w'], 'h' => $size['h']), true, '&'); ?>" title="<?php echo floor($size['ratio'] * 100); ?>%"><?php echo $size['w']; ?> × <?php echo $size['h']; ?></a> pixels <?php endforeach; ?>