Imagecache module for Drupal

The imagecache module for Drupal has to be one of the most superb available. Some of the power of imagechace is in the capability to generate on the fly derivative images at a module level.

I just wanted to share this snippet which creates within php or a module an instance of a preset imagecache image.

$image = theme('imagecache','designboardthumb',$node->field_tenbyten[0]['filepath'], 'alt','title', array());

 

designboardthumb is my preset created in the imagecache administration.

$node->field_tenbyten[0]['filepath'] is the path to the node cck file field filepath containing the image.

 

 


Your rating: None