contao

Teamsisu/contao-greyify doesn't work in contao


I have download Teamsisu/contao-greyify and upload in vendor/ teamsisu folder. Then give the inserttag

{{greyify::assets/images/9/Vicus-wint-iCMG-Enterprise-IT-Architecture-Excellence-Award-2016_banner-a428ab58.png/UUID?width=x&height=x&mode=x}}

But it doesn't work


Solution

  • Never use paths from the assets/images directory, since that is just the image cache. You need to reference the source image instead. You probably misinterpreted the README of the extension. You either use the path to the source image - or you provide the UUID of the file.

    Example with image path

    {{greyify::files/public/banner.png?width=200&height=100&mode=crop}}
    

    Example with image UUID

    {{greyify::c42739fa-39b8-11e9-b257-8c1645f08cc5?width=200}}