The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.

Operator: FinalRapture (talk · contribs)

Automatic or Manually assisted: Automatic

Programming language(s): PHP

Source code available: When done

Function overview: Updates names of images that uploaded to commons under a new name

Links to relevant discussions (where appropriate): Bot request

Edit period(s): Daily

Estimated number of pages affected: 15epm

Exclusion compliant (Y/N): Yes

Already has a bot flag (Y/N): No

Function details: Looks in Category:Wikipedia_files_on_Wikimedia_Commons for images. If the image is in use, and the image was uploaded under a new name, it compares the hash of the local and commons image (If the hashes don't match or the image doesn't exist then ((NowCommons)) is removed, and is tagged with ((NotMovedToCommons))). It will then update all uses of the image on each page it is used to the new filename.

Discussion[edit]

Will the bot also check older image versions? In particular, what will it do if another version has already been reuploaded over the image at Commons? Or what if a new version has been uploaded here? (I'd suggest going ahead in the first case, but retagging in the second.)

Also, if the hash check fails but the image dimensions match, I wonder if it'd be worth downloading the images and doing a pixel-by-pixel comparison to catch cases where the user who transfered the image ran it through an optimizer like pngout before reuploading. On one hand, it'd avoid cluttering Category:Wikipedia files moved to Wikimedia Commons which could not be deleted with false positives, but on the other hand it'd be more work for the bot (and the coder) for what might be only a marginal benefit. —Ilmari Karonen (talk) 22:14, 5 June 2010 (UTC)[reply]

It does not check previous versions of the image, if a different version was uploaded it will just mark it as unable to move and a human can intervene from there. The pixel-by-pixel comparison is very much not worth the effort required. FinalRapture - 22:27, 5 June 2010 (UTC)[reply]
((BAGAssistanceNeeded)) FinalRapture - 19:04, 9 June 2010 (UTC)[reply]
Approved for trial (40 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — The Earwig (talk) 20:57, 10 June 2010 (UTC)[reply]
Trial complete. I changed the bot code so that the links in the Edit summary worked, it wouldn't replace Image: to File:, edits marked as minor plus some escaping so regexes didn't fail. FinalRapture - 21:48, 10 June 2010 (UTC)[reply]
Well done. Tim1357 talk 19:09, 12 June 2010 (UTC)[reply]

 Approved.Tim1357 talk 19:09, 12 June 2010 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.