if ($format->isReduceOnly() && $sizeLess) {
            if (! $heightLess) {
                // resize by height
                $scaleHeight = $formatHeight;
                $scaleWidth  = (int) round($scaleHeight * $srcRatio);