darksandr/orchid-images
最新稳定版本:1.0.0
Composer 安装命令:
composer require darksandr/orchid-images
包简介
Image
README 文档
README
composer require darksandr/orchid-images
Example use
Default
$images = \Orchid\Attachment\Models\Attachment::find(1);
\DarKsandr\Images\Image::make($images);
Custom resize name
\DarKsandr\Images\Image::resize('custom_name')->save($images);
Config
| Name | Description |
|---|---|
| default | Default Image Resize Name |
| component | Component Image Name |
| format | Format Image Output (Supported format: "JPEG", "PNG", "GIF", "TIF", "BMP", "ICO", "PSD", "WebP") |
| resizes | Resizes List |
Example resize
/*
|--------------------------------------------------------------------------
| Resizes
|--------------------------------------------------------------------------
|
| If empty width and height - no resize
|
*/
'resizes' => [
'custom_name' => [
['width' => 800, 'height' => null, 'name' => 'pc', 'media' => 'max-width: 799px'],
['width' => 300, 'height' => null, 'name' => 'mobile', 'media' => 'min-width: 800px'],
],
],
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-30