vysokeskoly/image-bundle
最新稳定版本:6.0.0
Composer 安装命令:
composer require vysokeskoly/image-bundle
包简介
Bundle for loading and generating images
README 文档
README
Changelog
See CHANGELOG.md.
Installation
Step 1
Download using composer
"require": {
"vysokeskoly/image-bundle" : "^5.0"
},
Step 2
Add VysokeSkolyImageBundle bundle to AppKernel to list of loaded bundles.
$bundles = [ // .. new VysokeSkoly\ImageBundle\VysokeSkolyImageBundle(), // .. ];
Step 3
Configure required parameters for this bundle.
Implementation of ImageRepositoryInterface
- for example class
My\ImageRepositoryimplementsImageRepositoryInterface - its Autowired, so you do not have to specify it explicitly
config.yml
# EDU ImageBundle
vysoke_skoly_image:
image_formats:
preview1x:
width: 260
height: 175
preview2x:
width: 520
height: 350
cropped:
width: 100
height: 100
crop:
x: 20
y: 20
x2: 120
y2: 120
cropped2:
width: 100
height: 100
crop:
x: 20
y: 20
width: 100
height: 100
# [OPTIONAL]
services:
app.repository.image:
class: My\ImageRepository
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-07-14