protected static function _processImageField(array $field, array $file, $path)
{
$error = false;
$message = null;
$iaCore = iaCore::instance();
$iaPicture = $iaCore->factory('picture');
list($filename, ) = self::_generateFileName($file['name'], $field['file_prefix'], false);
$imageName = $iaPicture->processImage($file, $path, $filename, $field);
if ($imageName) {
$imageName = str_replace(IA_DS, '/', $imageName);
} else {
$error = true;
$message = $iaPicture->getMessage();
}
return array($imageName, $error, $message);
}