Commit 213e9c04 authored by Nicolas Widart's avatar Nicolas Widart

Add image check on creatAll

parent 44a4b886
...@@ -78,6 +78,8 @@ class Imagy ...@@ -78,6 +78,8 @@ class Imagy
*/ */
public function createAll($path) public function createAll($path)
{ {
if (!$this->isImage($path)) return;
foreach ($this->manager->all() as $thumbName => $filters) { foreach ($this->manager->all() as $thumbName => $filters) {
$image = $this->image->make(public_path() . $path); $image = $this->image->make(public_path() . $path);
$filename = '/assets/media/' . $this->newFilename($path, $thumbName); $filename = '/assets/media/' . $this->newFilename($path, $thumbName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment