Commons:Overwriting existing files
This guideline is about when and how users should or should not overwrite existing files.[1] Guidance on this is necessary because both Wikimedia projects using Commons files and external reusers who directly use Commons content rely on files being reasonably stable. As a result, the basic rule is that existing files should not be overwritten with substantially different content, whilst minor improvements should overwrite the previous version (but see below for exceptions). When in doubt, or to resolve inter-user conflicts, upload as a new file.
When not overwriting the existing file, changes should be uploaded under a new name (ideally similar to the old one), and the file description page should link to the original file and give credit to the original author(s).
DO overwrite[edit]
Minor improvements[edit]
As a general rule, use the link "Upload a new version of this file" only for relatively minor improvements. Examples include
- replacement with higher resolution versions of the same file, however, without using artificial methods to generate higher resolution
- minor and uncontroversial color correction, noise reduction, perspective correction etc.
- removal of a watermark
- needful 90/180/270° rotation or minor rotation corrections of images that are not upright
- minor cropping
- uncontroversial corrections to diagrams, maps, or charts, if a more accurate version is available
- correction of SVG errors
- adding or correcting translations, fixing spelling errors (e.g. changing "grater" to "greater")
and similar things where the essential composition is not altered. This might include a minor crop, for example to remove a recently-added border (don't upload over with files that remove parts of historical images), but aggressive crops should usually be uploaded under a new name, such as "Old image name (crop).jpg".
Correction of minor errors will usually be considered a minor improvement. However, the more extensive the correction, the more likely that it is better to upload the corrected version as a new file (to avoid possible disagreements about whether the correction is appropriate, and potentially an upload war), and if necessary nominate the old file for deletion.
Note: a file with image annotations will lose those annotations if the pixel dimensions change – see Help:Gadget-ImageAnnotator#Limitations. This is not a reason to split a file when making minor improvements, as the annotations can be re-entered.
Exceptions[edit]
If digital restoration work is being done on a historical document or artwork, the restoration (no matter how minor) should always be uploaded under a new filename from the original file, providing a link back to the source on which it was based in the new file's "other versions" field. The changes that were made should also be documented in sufficient detail to reproduce them, if possible. This is best practice for restorations, because it allows users and subsequent restorers to follow the chain of improvements and to make detailed comparison with the originals. (However, if a restoration already performed to a file, for example, missed a dust spot, it is not necessary to have a new file for each small change in the restoration). In some cases such original files are marked with {{Please-do-not-overwrite-original-files}}.
? Take care with files that have been awarded a special status like Featured Picture (or the equivalent on another Wikimedia project) as the status applies to a particular file version. Featured Pictures, Quality Images and Valued Images will be identified on their file description pages using {{Assessments}}. (NB the special Commons status does not transfer to derivative files.) The image creator may make minor changes where they feel this would be uncontroversial wrt the promotional status (for example, removing dust spots or fixing a minor tilt). Potentially controversial changes should be discussed with members of the forum that promoted the image.
Files used in Wikimedia projects where the use requires the file to remain unchanged – which means no overwriting at all: not for updates, minor improvements, or error corrections. Comments (including pointing out errors, and pointing to other versions) may freely be made in the Commons file description, but the file itself should not be overwritten. If necessary, upload a new version as a separate file. Such files should be marked with {{Please-do-not-overwrite-permanent-version}}.
Controversial or contested changes. If another editor thinks that the change is not an improvement (even if the editor making the change deems it minor), the change can be reverted, and the new image should be uploaded under a new file name. See below.
Respect content creators[edit]
The original image creator is often the best person to make edits. Since JPG is a lossy format, every edit to a JPG can deteriorate the image slightly; seemingly minor and "beneficial" edits such as changing white balance or adding noise reduction can actually do significant damage. Often the image creator has access to the RAW files from which to make a new version with whatever fix is required. This is always superior to editing the JPG. If it is a photograph, the image creator was there when the picture was taken so will be in a better position to judge whether colours and lighting are correct. Therefore it is strongly recommended that users wishing to make improvements to photographs first contact the creator, whether on Commons or elsewhere.
Unedited versions[edit]
Sometimes users uploading new files that have been edited (e.g. a photograph improved for colour, contrast, etc, compared to the raw photo) may wish to provide the original unedited version as well. Uploading these independently would needlessly clutter categories. The solution is to first upload the unedited version, and then shortly afterwards to upload the edited version over it, so that the unedited version is available in the file history. The unedited versions are not intended to be used independently, and should not be split out as separate files unless this is needed for a specific known use. Files using this approach should be labelled withNote: overwriting unedited versions applies only shortly after upload of the unedited version, and only to the original uploader when uploading an improved version of the same file. In all other cases, the usual criteria about overwriting apply (is it minor improvement? etc). In addition, the usual rule about resolving disagreements applies: if another user feels it useful to split the file, it should be split.
Secondary images[edit]
Project scope as an independent file. Examples include images of labels related to the subject of the main image, or the reverse of a postcard as evidence of copyright status. The solution is to first upload the secondary image, and then shortly afterwards to upload the main image over it, so that the secondary image is available in the file history. The secondary images are not intended to be used independently, and should not be split out as separate files unless this is needed for a specific known use. Files using this approach should be labelled with {{Secondary image}}. Note that secondary images are not exempt from the usual requirements of Commons:Licensing.
Sometimes users may wish to provide an image related to their upload, which might fall outside theNote: overwriting secondary images applies only shortly after upload of the secondary image, and only to the original uploader. In all other cases, the usual criteria about overwriting apply (is it minor improvement? etc). In addition, the usual rule about resolving disagreements applies: if another user feels it useful to split the file, it should be split.
Files with current data[edit]
Be cautious about overwriting files with new versions reflecting new information, as in many cases this may not be what reusers want.
filename, file description, categories, or (most clearly) with the {{Current}} template. A file named "File:Germany location map.svg" is expected to indicate the current boundaries, and is expected to be updated if, for example, the boundaries changed or errors were observed. On the other hand a file named "File:Germany, Federal Republic of location map October 1949 - November 1950.svg" is expected to be correct for that period and not reflect current boundaries.
However, files may be identified to reusers as ones where information may be updated – these files can and should be overwritten to reflect new information as necessary. Identification may be by theDO NOT overwrite[edit]
Exceptions to the minor changes rule[edit]
- Exceptions to the "minor changes should be uploaded to the same file" rule (see above):
- Digital restoration
- Files that have been awarded a special status like Commons Featured Picture, Commons Quality Image, or similar status on another Wikimedia project. Such files are marked with {{Assessments}}.
- Files used in Wikimedia projects where the use requires the file to remain unchanged
- Controversial or contested changes – see below.
- Artificially upscaling or enlarging using any tool, including AI-based or deep learning services
- Removing parts of historical images.For instance, historical engravings often have a border, and text describing the image under the image. If it was part of the original composition, and you want to remove it for some use on Wikimedia sites, upload it as a new file. If there are annotations or markings in the image that weren't part of the original composition, these can be removed and placed into the {{Information}} template, without a need to upload as a new image; for example, in the case of the Bundesarchive images, there is usually a call number and date of the photograph.
Substantial changes[edit]
- Major changes (e.g. a radical crop)
- Changes that reflect different data (e.g. updating a map)
- {{Current}} template unless the file is marked as updateable – i.e. identified to reusers as one where information may be updated, by the filename, description, or with the
[edit]
- Completely unrelated files
- Different files on the same topic (such as a photo of a cow uploaded over another photo of a cow)
- Different files relating to the exact same object (e.g. a different photo of Michelangelo's David)
- Note: do not overwrite a file in order to delete it; follow the Commons:Deletion policy instead.
Controversial or contested changes[edit]
Changes to a file that are likely to be contested should be uploaded to a separate filename. Upload wars (a form of edit war in which contributors repeatedly upload different versions of a file in an effort to have their version be the visible one) are always undesirable. As with other forms of edit warring, users who engage in upload wars may be blocked from editing.
If another editor thinks that a change is not an improvement (even if the editor making the change thinks it minor), the change can be reverted. Once a change has been reverted, the new image should be uploaded under a new filename (unless the reverting editor explicitly or implicitly agrees to the contested change). This is true even if the change is necessary, in one editor's view, to avoid a copyright infringement: in this case, if agreement cannot be reached through discussion, the old file should be nominated for deletion.
The more known uses of a file there are (through transclusions on Wikimedia projects), the more cautious contributors should be in deciding whether a change qualifies as "minor". Widespread usage of a file makes it more likely that even small changes will be controversial. If in doubt, uploading as a separate file avoids potential surprises for reusers. In some cases, prior discussion with previous uploader(s) or in locations where the file is in use may help decide whether a planned change can be considered "minor".
Changes that break consistency with other images[edit]
When images are consistent among each other, individual images should not be changed in a way that makes them inconsistent with the others. (E.g. File:Icosahedron flat.svg should not have been overwritten with a white version, because that broke the consistency of the set.)
File:Hawaiian Eruption-numbers.svg, because it was done to all images in the set.)
Small changes can be made to all images, as long as they remain consistent. (E.g. it was fine to remove circles around numbers inExamples[edit]
Minor improvements[edit]
See for example the version histories of
- File:Avestaforsen.jpg, which is essentially the same image, with several subtle corrections applied
- File:15th anniversary of Image Comics - seven founders.jpg, which has minor cleanup
- File:Chess Board.svg, which has always identical appearance but underwent several improvements of its coding
Minor improvements for textual elements include correcting spelling on a map's labels. By contrast, translating a map's labels from English to German is a major change, and should be uploaded as a separate file.
Substantial crop or un-crop[edit]
Whether a crop is "substantial" depends partly on the proportion of the image cropped, and partly on how much the excluded content affects the composition. For an image of a museum object on a grey background, cropping much closer to the object was considered a minor crop:
original with more negative space
On the other hand, the photograph below of Martin Scorsese was substantially cropped for a closeup on his face, and the result was put into a separate file; and the photograph below of a mountain was cropped to substantially recompose it:
When cropping a JPEG image, remember to always use lossless cropping.
- Example: This 1899 portrait of a young man with a fish by Wilhelm von Gloeden was uploaded in 2005 but then overwritten in 2010 by a full length un-cropped version. Though the intent was to restore the image to a better quality version, the overwrite proved highly controversial as it changed the context from a modest pose to a nude with potential erotic connotations. In some existing transclusions this change was unwanted and caused controversy. Uploading the higher quality image as a separate file would have avoided this.
Unedited versions[edit]
- Example: File:Homenagem ao Padre Fernando Augusto da Silva, Santo António, Funchal, 1927.jpg is an image from 1927, with the original unedited scan uploaded first, and then the improved version uploaded a minute later.
- Example: File:Periquitos - Psilopsiagon aymara.jpg is a cropped version of File:Psilopsiagon aymara -Capilla del Monte -four-8.jpg, and has the uncropped original version in the file history.
- Counter-example: File:Wounded Knee aftermath3.jpg is a digitally enhanced version of the unedited original File:Wounded Knee aftermath.jpg. During the restoration it was discovered that what was described as "debris" in the original were dead bodies. Though the restoration itself was non-controversial, overwriting the original with such an important change of context would be considered controversial, and for that reason alone the images should be kept as separate image pages.
Secondary images[edit]
- Example: File:Neapolitan Fisherboy.jpg is an image of a sculpture, and contains an image of the sculpture's label in the file history.
- Example: File:William Shatner Star Trek.JPG is a publicity photo of William Shatner as James Kirk from the television program Star Trek, and the oldest image in the file history is used to verify the public domain status.
Files with current data[edit]
Examples:
Controversial or contested changes[edit]
- Example: File:Kit body rmcf1213a.png had two upload wars over the content of a Real Madrid kit.
Permanent versions[edit]
Linking files[edit]
Attribution[edit]
Be sure to attribute the original author appropriately, and to apply a license compatible with the original file. You can use {{Derived from}} and {{Derivative versions}} to link the files. More specific derivative templates are also available, including {{Image extracted}}, {{Retouched picture}}, and {{Attrib}}.
Using "other versions" field of Information template[edit]
The template {{Information}} has an |other versions
parameter which you can use to link between different versions of a file. You can
- use the {{Thumbnail}} or {{Other}} templates to show a small preview of the linked file
- use a <gallery> tag to show different versions (see meta:Help:Images and other uploaded files#Gallery)
- use an "other versions" template containing a gallery tag to link different versions (see Category:Other versions templates).
Link to a variable content[edit]
When you want to provide or use a stable link from the other projects for any image which is anticipated to be repeatedly updated, you have several ways to do it:
- Label the image page with the {{Current}} template (see § Files with current data). The main disadvantage is that the old version cannot be directly linked if needed.
- Create a file redirect page under a fictive filename on Commons and use a link to this filename on the other projects. Change the redirect to each new version (inbound links from other projects need not to be updated). This means updating just one link instead of many. (Note the effect of overwriting or switching over can be delayed slightly through cache delay or can fail through software imperfection.) Example: link to File:Africa borders redirect on Wikipedia, and on Commons have File:Africa borders redirect point to File:Africa borders 2011, File:Africa borders 2012, etc as needed.
- Combine the two methods. Particular version can be uploaded (and linked) separately under their specific permanent filenames and a different filename can be marked with {{Current}} version and overwritten ever by the current version. That means (just as the previous solution) that the current version is available under two filenames: one for the constant content and one for the updatable content. This solution should be more immune towards cache delay and software-update bugs than the previous one.
Warning: when doing one of these solutions, be sure that users of the filename are clear that the content of the file may change, and try to check uses of the file before updating the redirect or overwriting the file.
Notes[edit]
- ↑ A file can be overwritten by any user with an account older than 4 days from the file's file description page using the
Upload a new version of this file
link below the File history; or via Special:Upload. Special:Upload provides two warning messages when overwriting an existing file – MediaWiki:UploadFormPreviewOverwriteError and MediaWiki:Fileexists (see also Phab:T41344). The UploadWizard does not allow overwriting of files.
See also[edit]
- Ask a user not to overwrite files: To request that another editor not overwrite an existing file, you may place {{Dont overwrite}} on the user's talk page. This request is automatically translated into many languages.
- Label a file not to be overwritten: {{Please-do-not-overwrite-original-files}} may be used on file pages to designate files that should not be overwritten.
- Request a file split: You can request a split up of file history by adding {{Split}} on the file page. This places the file in Category:Media requiring a split up. See also Commons:History merging and splitting.
- Image formatting templates may save having to create a new file version. For example, temporary or illustrative crops may be created using {{Preview Crop}} rather than creating a new derived image or overwriting an existing image. Images may be overlaid without having to create new derivatives by using the {{Superimpose}} template.
- Commons: Database stat reports: Top 200 users with the most "overwrite" entries.
- Log of recent overwrites
Help[edit]
- Look at the Frequently Asked Questions.
- If you place
{{helpme}}
on your talk page, a volunteer will visit you there as soon as possible! - Join the #wikimedia-commons IRC channel for real-time chat. New to IRC? Click here to be connected instantly!
- Go to the Commons Help Desk.