rebuilding thumbnails command
This commit is contained in:
@@ -79,7 +79,6 @@ class FileService
|
||||
throw new LucentException("File $filename not uploaded");
|
||||
}
|
||||
|
||||
// $this->createThumbnail($disk, $schema->path, $filename, $file);
|
||||
$this->createTemplates($disk, $path, $file);
|
||||
|
||||
list($width, $height) = $this->isImage($mimetype) ? getimagesize($file) : [0, 0];
|
||||
@@ -130,9 +129,8 @@ class FileService
|
||||
return $record->id ?? "";
|
||||
}
|
||||
|
||||
private function createTemplates(Filesystem $disk, string $path, UploadedFile $file): void
|
||||
public function createTemplates(Filesystem $disk, string $path): void
|
||||
{
|
||||
|
||||
$originalImage = $this->imageManager->make($disk->get($path));
|
||||
foreach (config("lucent.imageFilters") as $preset => $filterClass) {
|
||||
$image = $originalImage->filter(new $filterClass);
|
||||
|
||||
Reference in New Issue
Block a user