tohtamysh / laravel-image-preview
This package is abandoned and no longer maintained.
No replacement package was suggested.
Image preview for Laravel
v1.1
2019-03-06 08:09 UTC
Requires
- php: >=7.0
- illuminate/support: 5.5.x|5.6.x|5.7.x|5.8.x
- intervention/image: ^2.4.2
Requires (Dev)
- laravel/framework: 5.7.x|5.8.x
README
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();