EllisLab text mark
Advanced Search
     
Grayscale YouTube Thumbnails? 
Posted: 30 March 2012 11:31 AM   [ Ignore ]
Avatar
Joined: 2010-11-17
161 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}"}
      
<img src="{made}" alt="{title}" width="297" />
    
{/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!

 Signature 

Kind regards,


Tom Perkins
Creative Director
———————————-
Custom Studio
Design to create custom

Email:  .(JavaScript must be enabled to view this email address)
Web:  customstudio.co.uk

 
Posted: 31 March 2012 02:31 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2009-11-02
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?

 Signature 

London based Freelance ExpressionEngine Developer

 
Posted: 02 April 2012 06:09 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2008-02-20
116 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

 Signature 

@pvledoux

 
Posted: 02 April 2012 06:47 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-11-17
161 posts
Rob Games - 31 March 2012 02:31 PM

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!

 Signature 

Kind regards,


Tom Perkins
Creative Director
———————————-
Custom Studio
Design to create custom

Email:  .(JavaScript must be enabled to view this email address)
Web:  customstudio.co.uk

 
Posted: 02 April 2012 06:47 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2010-11-17
161 posts
Pv Ledoux - 02 April 2012 06:09 AM

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?

 Signature 

Kind regards,


Tom Perkins
Creative Director
———————————-
Custom Studio
Design to create custom

Email:  .(JavaScript must be enabled to view this email address)
Web:  customstudio.co.uk