Skip to content

Commit

Permalink
fix problem when creating thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Oct 18, 2018
1 parent 122f6b4 commit 8282aea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/LfmPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace UniSharp\LaravelFilemanager;

use Illuminate\Http\File;
use Illuminate\Container\Container;
use Intervention\Image\Facades\Image;
use Symfony\Component\HttpFoundation\File\UploadedFile;
Expand Down Expand Up @@ -316,9 +315,5 @@ public function makeThumbnail($file_name)
$image = Image::make($original_image->get())
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
->save($image_path);

$file = new File($image_path);

$this->setName($file_name)->thumb(true)->storage->save($file);
}
}

0 comments on commit 8282aea

Please sign in to comment.