FIX: se borro flag crop
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user