calling

theme('aef_utilities_image', array($nid,$fid,$data), 'my_imagecache_preset')

renders the image with the imagecache rules applied, but ignores the scale/crop that has been applied via the UI post uploading the file.

Any ideas why that could be?

Comments

nrackleff’s picture

subscribing

nrackleff’s picture

May I ask how you got as far as you did? Here's what I've entered, and it returns no output at all. Am I passing the wrong data to the theme function?

$nid = $node->nid;
$fid = $node->field_mw_image[0]['fid'];
$data = $node->field_mw_image[0]['data'];
$output = theme('aef_utilities_image', array($nid,$fid,$data), 'grid_image_std');
print $output;

Thanks for your help.

sirviejo’s picture

print theme('aef_utilities_image', $node->field_mw_image[0], 'grid_image_std');

// theme('aef_utilities_image', $node->image_field[0], $presetname);