See CHANGELOG.md.
Download using composer
"require": {
"vysokeskoly/image-bundle" : "^5.0"
},
Add VysokeSkolyImageBundle bundle to AppKernel to list of loaded bundles.
$bundles = [
// ..
new VysokeSkoly\ImageBundle\VysokeSkolyImageBundle(),
// ..
];
Configure required parameters for this bundle.
Implementation of ImageRepositoryInterface
- for example class
My\ImageRepository
implementsImageRepositoryInterface
- 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