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.
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]
Approved.Tim1357 talk 19:09, 12 June 2010 (UTC)[reply]