avalanche123 / AvalancheImagineBundle

Image manipulation using Imagine and Twig Filters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Chain and/or Paste Filters

mstaples opened this issue · comments

I have been successfully using various thumbnail type filters with my avalancheimagine install for months. I am attempting to add in filters which use 'paste' and 'chain' types, but

I receive the error: Could not find loader for "paste" filter type or Could not find loader for "chain" filter type.

Are these types not built in? Do I need to add loaders for them somewhere? Is there an additional step between adding in the filter config to app/config and using the filter in a template that I am forgetting/missing?

If I have overlooked the answer in the documentation somewhere, my apologies, but thus far I have been unable to locate a solution.

Thank you for any feedback you can offer :)

I see that the Filter and FilterLoader files for Chain and Paste are not present in my install of the bundle (I do not know why, my version is set to v2.1 as recommended in the documentation) and so I have been attempting to add chain and paste in as custom filters from my project bundle.

I get an error if I attempt to place the Filter files in the Filter rather than Filter/Loader directory as the bundle has them. If both the FilterLoader and Filter files for paste and chain are in the Filter/Loader directory it seems to attempt to use my custom filters, but I get this error:

Argument 1 passed to My\Bundle\Filter\Loader\ChainFilter::__construct() must be of the type array, none given

Any advice on getting these filters hooked in is most appreciated :)

the chain filter (and loader) seems to be not included in v.2.1
explicitly requiring v2.1.1 did the trick for me.

yes, this fix the bug for me :
"avalanche123/imagine-bundle" : "~2.1.2",
thanks !
greetings,
ben