Page MenuHomePhabricator

Transwiki image import
Closed, ResolvedPublicFeature

Description

It would be very useful to have a clean way to import images into another wiki.
The import should include the image description (all revisions), and
(optionally?) all versions of the file.

Some suggestions for the implementation:

  • The import interface should be a special page, presumably Special:Import.
  • A checklist of image versions could be presented, so the user can choose which versions can be ignored.
  • The description text (all revisions) could be imported using the Special:Export interface.
  • The Special:Export interface would need to get an option to export the upload history of a file.
  • The files themselves could be copied on-disk, if the upload directories of source and target wiki are on the same server (which is the case for most wikimedia wikis, but not all). If that is not the case, the images can be loaded via HTTP, perhaps using Special:Filepath
  • Since the import potentially involves quite a bit of slow and unreliable interaction over the net, care must be taken to implement transactinal logic in order to prevent partial/broken imports.

A clean & easy way to transfer images between wikis has often been requested. I
am putting this here to have a place for tracking and discussing the issue, and
collection thoughts on the technical side of things.

Details

Reference
bz6071

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:20 PM
bzimport set Reference to bz6071.
bzimport added a subscriber: Unknown Object (MLST).

jus168jih wrote:

There are no users at Wikimedia Commons with importing privileges. Even I,
User:Jusjih there as an admin, get "No transwiki import sources have been
defined and direct history uploads are disabled." How may I get importing
privilege at Wikimedia Commons?

ayg wrote:

I *could* be wrong, but don't brion's changes to import make this FIXED? It
just needs to be enabled for Commons (presumably import from any project should
be possible). Unless the changes don't allow images to be transferred; I'm not
sure.

The import sources has to be defined for every Wikimedia-Wiki separately. Then
every admin of this wiki can do the import. But only for articles up to 100
revisions and import of images are not possible yet.

This request is about importing *images* along with the neccessary upload
history and license tags. This is related to, but quite different from what
Special:Import does. Please keep that separate. For a working image import,
several issues would have to be resolved first, such as mapping license tags and
user names, aids for categorization, etc - not to mention the transfer of the
image itself. Image import is, unlike a text import, not a streight copy.
That's what this request is about.

ayg wrote:

(In reply to comment #4)

For a working image import,
several issues would have to be resolved first, such as mapping license tags and
user names, aids for categorization, etc - not to mention the transfer of the
image itself. Image import is, unlike a text import, not a streight copy.
That's what this request is about.

Ah, I see. Good point.

robchur wrote:

*** Bug 11439 has been marked as a duplicate of this bug. ***

Mass compoment change: <some> -> Export/Import

rehman.wikimedia wrote:

Whats's the current status of this bug?

(In reply to comment #8)

Whats's the current status of this bug?

It still needs bug 13827 to be resolved, see the dependency list.

  • Bug 27082 has been marked as a duplicate of this bug. ***

rehman.wikimedia wrote:

Sad this is moving so slow. It would really help in the huge Move-To-Commons backlogs, and also more importantly, help save the original history...

This old request is blocked by the also old Bug 13827 - Add image data option to Special:Export

Please check my question at the other blocker report about the convenience of promoting this task as a possible project for out outreach programs.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.

Is this still relevant now that Move-Files-To-Commons exists, or can this be closed?

This task is requesting a generic way to import images from one MediaWiki wiki to another using Special:Import.

I'll edit the task description to remove all references to Commons.

Is FileImporter/FileExporter specific to Commons in some way other than that being the name of the Phabricator project, though? What stops it from serving as a generic way to export files?

My interpretation of this task, given its placement in MediaWiki-Core-Snapshots, is that a way to export images using the existing Special:Import/Export infrastructure is wanted. Currently you can only export/import the file description page, not the file itself. See also the duplicate T143591: Special:Import does not import the actual file.

FileImporter seems to be a much higher-level tool than what is asked for here. The Special:Export/Import infrastructure is used for migrating wiki content en masse and similar tasks.