imagefield_file.inc 44行
if ($create_thumb) {
imagefield_create_admin_thumb($file->filepath, $filepath,'100x100');
imagefield_create_admin_thumb($file->filepath, $filepath1,'640x480');
}
return $filepath;
}
/**
* Create a thumbnail to be shown while editing an image.
*/
function imagefield_create_admin_thumb($source, $destination,$size) {
if (!is_file($source)) {
return FALSE;
}
$info = image_get_info($source);
$size = explode('x', variable_get('imagefield_thumb_size', $size));