Use Imagecache preset in Code

Public

Warning message

We recommend you to assign at least one category to this snippet so you could easily navigate it in the future. Edit your snippet here.
</> CopyGet raw version
php
  1. $image_data = field_file_load($fid);
  2. print l(theme('imagecache', 'preset_name', $image_data['filepath']), 'Link_to', array('html'=>TRUE));