Voting starts in March for the Drupal Association Board election.
Is it possible to return an image in a computed field?
I would like to use it to scale an image but I got the error
Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2136 of /home/xxx/includes/database/database.inc).
My computed field code is:
$file = file_load($entity->uc_product_image['und']['fid']);
$image = image_load($file->uri);
//$scaled = image_scale($image, 200);
$entity_field['value'] = $image;