laravel-image-preview maintained by tohtamysh
Image preview for Laravel
The package creates thumbnails and stores them in storage.
URL example:
/preview/w100h200cr000000ext/news/file.jpg
create thumbnail with
width - 100px
height - 200px
background color - #000000
ext - extention
Programmatically create thumbnail
$imagePreview = new ImagePreview(['width' => 200, 'file' => $path]);
$cachePath = $imagePreview->createThumbnail();