FIX: se borro flag crop
This commit is contained in:
@ -114,7 +114,6 @@ class MediaLoader {
|
|||||||
$folder = $this->getFolder($event);
|
$folder = $this->getFolder($event);
|
||||||
if (!file_exists($folder)) {
|
if (!file_exists($folder)) {
|
||||||
mkdir($folder);
|
mkdir($folder);
|
||||||
chown($folder, 'ftpuser:web');
|
|
||||||
chmod($folder, 0777);
|
chmod($folder, 0777);
|
||||||
}
|
}
|
||||||
$extension = pathinfo($file->getClientFilename(), PATHINFO_EXTENSION);
|
$extension = pathinfo($file->getClientFilename(), PATHINFO_EXTENSION);
|
||||||
@ -198,7 +197,7 @@ class MediaLoader {
|
|||||||
|
|
||||||
return $dst;
|
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);
|
$info = getimagesize($source);
|
||||||
if ($info['mime'] == 'image/jpeg') {
|
if ($info['mime'] == 'image/jpeg') {
|
||||||
$image = imagecreatefromjpeg($source);
|
$image = imagecreatefromjpeg($source);
|
||||||
|
Reference in New Issue
Block a user