芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/spatie/PerformsFitCrops.php
height($desiredHeight); } else { $this->width($desiredWidth); } } $currentAspectRatio = $originalWidth / $originalHeight; $desiredAspectRatio = $desiredWidth / $desiredHeight; if ($currentAspectRatio > $desiredAspectRatio) { $this->height($desiredHeight); } else { $this->width($desiredWidth); } $this->resizeCanvas($desiredWidth, $desiredHeight, AlignPosition::Center); return $this; } }