Mij wrote:
Hello,
Some people answered to this post asking for the code I used for importing preserving the media's metadata. I attach it here. For usage instructions see --help. For more details, see the comments heading the smartImportImages.php file. If there is a formal submission process for contribs, sorry for not following it.
The mailing list removed the attachment. You can provide an external link. Or if you license it as GPL, it could be committed into mediawiki svn.