Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image resize and watermark #229

Closed
iro88 opened this issue Aug 27, 2013 · 1 comment
Closed

Image resize and watermark #229

iro88 opened this issue Aug 27, 2013 · 1 comment

Comments

@iro88
Copy link

iro88 commented Aug 27, 2013

I tried to do this like below, but filtered files don't create (no errors). When I comment watermark it's ok. Is it possible to apply multiple filters? I tried to do it in different ways and nothing.

liip_imagine:
    driver:                 gd
    web_root:               %kernel.root_dir%/../web
    data_root:              %kernel.root_dir%/../web
    cache_mkdir_mode:       0777
    cache_prefix:           /media/cache
    cache:                  web_path
    cache_clearer:          true
    data_loader:            filesystem
    controller_action:      liip_imagine.controller:filterAction
    formats:                ['jpg', 'jpeg', 'png', 'gif']
    filter_sets:
        small:
            quality:    100
            filters:
              relative_resize: { widen: 300 }
              watermark:
                image: %kernel.root_dir%/../web/media/img/watermark.png
                size: 0.5
                position: bottomright
        normal:
            quality:    100
            filters:
              relative_resize: { widen: 500 }
              watermark:
                image: %kernel.root_dir%/../web/media/img/watermark.png
                size: 0.5
                position: bottomright
        big:
            quality:    100
            filters:
              relative_resize: { widen: 800 }
              watermark:
                image: %kernel.root_dir%/../web/media/img/watermark.png
                size: 0.5
                position: bottomright
@USvER
Copy link
Contributor

USvER commented Dec 8, 2013

Issue #262, Issue #263
I guess it can be closed...

@havvg havvg closed this as completed Dec 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants