Liquid error when using image sizes

Peter Berkenbosch's Avatar

Peter Berkenbosch

24 Aug, 2011 07:09 PM via web

I've added an image_size and with name "teamfoto groot". The slug is teamfoto_groot. I;m using the resize filter like this:

{{ item.data.team_photo.url | image_size_url: 'teamfoto_groot' }}

Something is failing, see content below..
alt="Demo team" class="team_shot">

Am I doing something wrong? Or did I just hit a bug ?

  1. Support Staff 2 Posted by Steve Smith on 24 Aug, 2011 07:20 PM

    Steve Smith's Avatar

    Hey Peter,

    When using the image_size_url filter, you pass the image itself to the filter, not the URL. So it would be like this:

    > {{ item.data.team_photo | image_size_url: 'teamfoto_groot' }}

    --Steve

  2. 3 Posted by Peter Berkenbosch on 24 Aug, 2011 07:51 PM

    Peter Berkenbosch's Avatar

    Doh!.. should have seen that one.. Thanks!!

  3. John Nunemaker closed this discussion on 26 Aug, 2011 05:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

17 May, 2012 10:45 PM
20 Mar, 2012 05:05 PM
26 Apr, 2012 01:40 AM
07 Mar, 2012 04:42 PM