vysokeskoly/image-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (6.0.0) of this package.

Bundle for loading and generating images

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

6.0.0 2022-07-14 14:49 UTC

This package is auto-updated.

Last update: 2022-10-14 15:17:18 UTC


README

Latest Stable Version License Checks Build Coverage Status

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\ImageRepository implements ImageRepositoryInterface
  • 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