Media : Fix thumbnail generation
This commit is contained in:
parent
d2236fe041
commit
aef61a6c8f
1 changed files with 2 additions and 0 deletions
|
|
@ -694,11 +694,13 @@ class Media extends Model
|
|||
}
|
||||
$im = $im->deconstructImages();
|
||||
}
|
||||
$im->setImageFormat(MediaExtension::gif);
|
||||
$storage->put(
|
||||
$this->preview_relative_path,
|
||||
$im->getImagesBlob()
|
||||
);
|
||||
} else {
|
||||
$im->setImageFormat(\pathinfo($this->preview_relative_path, \PATHINFO_EXTENSION));
|
||||
if ($this->largeur >= $format->largeur || $this->hauteur >= $format->hauteur || $this->largeur == "") {
|
||||
$im->thumbnailImage($format->largeur, $format->hauteur, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue