On 12/17/06, Brion Vibber brion@pobox.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
On 17/12/06, Brion Vibber brion@pobox.com wrote:
Special:Export and Special:Import do not handle images at this time. There's some specs for it in the XML format but currently it's only used by the OAI feed system.
What might be the best approach to making this work, then? Chucking the filename in the XML somewhere and having Special:Import do a local copy, if possible?
That's pretty much how it would work if you implemented the spec. I stashed an example in docs/export-demo.xml:
<page> <title>Image:Some image.jpg</title> [snip] <upload> <timestamp>2001-01-15T20:34:12Z</timestamp> <contributor><username>Foobar</username><id>42</id></contributor> <comment>My awesomeest image!</comment> <filename>Some_image.jpg</filename> <src>http://upload.wikimedia.org/commons/2/22/Some_image.jpg</src> <size>12345</size> </upload> </page>
Probably not too hard to hack up, actually, if someone wants to give it a try.
Or, we could use query.php (or that other api thing...) :
http://en.wikipedia.org/w/query.php?what=imageinfo&titles=Image:Cetacea_...
to import the image history, and use SpecialImport for the description page only.
Magnus