Home
last modified time | relevance | path

Searched refs:newRatio (Results 1 – 1 of 1) sorted by relevance

/dokuwiki/vendor/splitbrain/slika/src/
H A DGdAdapter.php367 $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);