ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Grayscale YouTube Thumbnails?

March 30, 2012 11:31am

Subscribe [3]
  • #1 / Mar 30, 2012 11:31am

    Evolve Websites

    110 posts

    Hi there,

    I’m creating a site that is using only grayscale images.

    The site has a video section.

    I’ve used the brilliant Antenna plugin to create my YouTube thumbnails.

    I’ve also used the brilliant CE Image to create my grayscale static images.

    What I’m trying to do is to combine Antenna and CE Image to create grayscale YouTube thumbnails.

    Here’s my code:

    <div class="thumbnail">
      {exp:antenna url='{youtube_video_url}' max_width="297" max_height="165" cache_minutes="120" youtube_rel="0"}
        {exp:ce_img:pair src="{video_thumbnail}"}
          {made}
        {/exp:ce_img:pair}
      {/exp:antenna}
    </div>

    Antenna on its own is working well.

    CE Image on its own is also working well.

    The two used as shown above is not outputting anything.

    Any ideas are appreciated!

  • #2 / Mar 31, 2012 2:31pm

    Rob Games

    38 posts

    This is to do with the parsing order of the plugins. This is a good read on the subject: http://loweblog.com/downloads/ee-parse-order.pdf

    Best way to handle this would be to embed the CE Image in a separate template and pass the variable {video_thumbnail} through.

    I’m not at my computer right now but if you want I can put together a quick example for you later?

  • #3 / Apr 02, 2012 6:09am

    Pv Ledoux

    95 posts

    Mmmmh did you try with parse=“inward” in the ce_img tag? That should force the external plugin to be parsed first.
    http://ellislab.com/expressionengine/user-guide/templates/plugins.html#changing-parsing-order

  • #4 / Apr 02, 2012 6:47am

    Evolve Websites

    110 posts

    This is to do with the parsing order of the plugins. This is a good read on the subject: http://loweblog.com/downloads/ee-parse-order.pdf

    Best way to handle this would be to embed the CE Image in a separate template and pass the variable {video_thumbnail} through.

    I’m not at my computer right now but if you want I can put together a quick example for you later?

    Hi Rob, that would be fantastic, thanks!

  • #5 / Apr 02, 2012 6:47am

    Evolve Websites

    110 posts

    Mmmmh did you try with parse=“inward” in the ce_img tag? That should force the external plugin to be parsed first.
    http://ellislab.com/expressionengine/user-guide/templates/plugins.html#changing-parsing-order

    Hi Pv Ledoux, sadly that didn’t work, I suspect because we’re dealing with two external plugins?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases