FIX: se borro flag crop

This commit is contained in:
2020-06-16 23:17:41 -04:00
parent a2ce28e8c7
commit 5c384fddd5

View File

@ -114,7 +114,6 @@ class MediaLoader {
$folder = $this->getFolder($event);
if (!file_exists($folder)) {
mkdir($folder);
chown($folder, 'ftpuser:web');
chmod($folder, 0777);
}
$extension = pathinfo($file->getClientFilename(), PATHINFO_EXTENSION);
@ -198,7 +197,7 @@ class MediaLoader {
return $dst;
}
protected function copyResize($source, $destination, $quality, $w, $h = 0) {
protected function copyResize($source, $destination, $quality, $w, $h = 0, $crop = false) {
$info = getimagesize($source);
if ($info['mime'] == 'image/jpeg') {
$image = imagecreatefromjpeg($source);