Searched refs:newRatio (Results 1 – 1 of 1) sorted by relevance
367 $newRatio = $width / $height;370 if ($newRatio >= 1) {371 if ($newRatio > $oldRatio) {373 $cropHeight = (int)($this->width / $newRatio);375 $cropWidth = (int)($this->height * $newRatio);379 if ($newRatio < $oldRatio) {380 $cropWidth = (int)($this->height * $newRatio);384 $cropHeight = (int)($this->width / $newRatio);