ok, here is how to get meta information to be passed using donncha's excellent site wide tags plugin:
before switch_to_blog( $tags_blog_id );
on line 159 you should add the following:
if ( $images = get_children(array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'numberposts' => 1, 'post_mime_type' => 'image',)))
{
foreach( $images as $image ) {
$the_attachement_file = get_attached_file($image->ID);
$the_attachement_url = wp_get_attachment_url($image->ID);
}
}
then after $p = wp_insert_post( $post );
about 20 lines down add the following:
$attachment = array( 'post_title' => 'file'. time(), 'post_content' => '', 'post_type' => 'attachment', 'guid' => $the_attachement_url, 'post_parent' => $p, 'post_mime_type' => 'image/jpeg' );
$attach_id = wp_insert_attachment( $attachment, $the_attachement_file, '');
$attach_data = wp_generate_attachment_metadata( $attach_id, $the_attachement_file );
wp_update_attachment_metadata( $attach_id, $attach_data );
for me it is not really passing the guid properly for some reason, but it is still working with the simple thumbnail generator i use above.
i hope this helps. and I hope I have not forgotten anything or have coded it poorly.