poldixd / simple-thumbnailer
创建缩略图并将它们存储到公开存储中。
0.2.0
2017-09-15 09:38 UTC
Requires
- php: >=5.6.4
- intervention/image: ^2.4
This package is auto-updated.
Last update: 2024-09-21 20:56:20 UTC
README
此包为laravel 5.x创建缩略图,使用了 intervention/image。
请注意,此包仍在开发中!请不要使用它!
使用方法
\poldixd\SimpleThumbnailer\Image::get('path/to/image.jpg', 540);
此函数返回图像的URL。缩略图将保存在 storage/app/public/
。您需要使用 artisan 命令 $ php artisan storage:link
将 storage/app/public
文件夹链接到 public/storage
。更多信息请参见 此处。
许可证
SimpleThumbnailer 使用 MIT 许可证。
版权所有 2017 Nils Poltmann