nkt/image-bundle

Symfony bundle for image uploading

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master / 1.0.x-dev 2014-05-24 22:47 UTC

This package is auto-updated.

Last update: 2024-12-04 12:46:56 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Usage

Add "nkt/image-bundle": "1.0.x-dev" into composer.json.

Add Nkt\ImageBundle\NktImageBundle into your kernel bundles.

Add configuration into app/config/config.yml:

nkt_image:
    upload_dir: %kernel.root_dir%/uploads # Value by default
    types:
        logo:
            extension:  jpg
            min_width:  100
            max_width:  1000
            min_height: 100
            max_height: 1000
        slider:
            min_width: 500

Import routing in your app/config/routing.yml:

nkt_image:
    resource: "@NktImageBundle/Resources/config/routing.yml"
    prefix: /

Then clear your application cache, and update database schema.

app/console cache:clear
app/console doctrine:schema:update --force

License

MIT