Lines Matching refs:ratio
242 $ratio = 1; variable
246 $ratio = $maxwidth / $w; variable
248 $ratio = $maxheight / $h; variable
252 $ratio = $maxheight / $h; variable
254 $ratio = $maxwidth / $w; variable
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,