Commons:File types
From Wikimedia Commons, the free media repository
|
File types in other languages: |
|
Wikimedia Commons only accepts "free content"; likewise, ONLY free file formats are allowed.
Patent-encumbered file formats like MP3, AAC, WMA, MPEG, AVI and the like are not accepted at Wikimedia Commons. Our mission requires content to be freely redistributable to all. Patent-encumbered formats fail to meet this standard.
Non-free formats must be converted to a free format before uploading. Fortunately, this is not difficult.
[edit] Summary of file types
Currently the following formats are allowed:
- Images: SVG, PNG, GIF, JPEG, XCF (GIMP)
- Audio: Ogg (using FLAC, Speex, or Vorbis codecs) or MIDI
- Video: Ogv using Theora codec. (.ogv replaces .ogg which is still allowable as video)
- Animation: GIF, APNG.
- General: PDF and DjVu.
[edit] Currently disabled
While SXW, SWC, SXD, and SXI (OpenOffice.org 1.x), as well as ODT, ODS, ODG, and ODP (OpenDocument) are theoretically permissible under the similar provisions to Commons:Scope#Pdf and DjVu formats these formats are currently disabled because we are currently unable to prevent people from hiding harmful or otherwise impermissible content inside OpenOffice's ZIP based container format.
[edit] Images
On Wikimedia Commons, the file types we recommend are: SVG, PNG, JPEG, and XCF (GIMP).
Image formats that are not allowed at the Wikimedia Commons include TIFF and BMP. These can both be losslessly converted to PNG (in case of BMP file size will even be smaller).
Unfortunately the image scaling system is still fairly bad. Currently, thumbnails are generated in the same format as the original image and are always in 24-bit color unless the image is GIF, in which case the resulting image will have 256 colors. This means that scaling PNG images produces fairly large files even if the original image contained a palette. This also means that if you want to upload a lossless PNG of a photo for editing and archival, but want to use JPEG thumbnails in articles, you have to upload a (full scale) JPEG version manually.
Note that scaling of images may fail if the image is very large and rendering takes too much time or memory (in that case, either no scaled image is shown, or the full image is served to the browser, often causing it to lock up). For PNG images, a hard limit of 12 megapixels is in effect. Large JPEGs are only problematic if they are saved in progressive mode, use baseline mode instead. In case the full scale original is too large to process for the software, please overwrite it with a scaled down version (around 6 megapixels in size); the full scale version will still be available in the upload history, and you can add a reference to it in the image description.
The scaling problem also means that care must be taken in creating clickable image maps. PNG can be bad for clickable image maps in many cases because of the previously-discussed PNG scaling problem with the MediaWiki software. See also Template talk:BadGIF. An unscaled clickable PNG image map may work out fine. But a scaled clickable PNG image map can be much higher in kilobytes. As in 100 kilobytes versus 500 kilobytes. In that case it may actually be better to create a GIF version of the map for this particular use as an image map. This way editors can use any size of the image map without problems. An "other versions" link to the full-color PNG map can be left on the GIF image description page.
[edit] JPEG
JPEG is appropriate for photographs; JPEG uses "lossy compression", sacrificing precision for smaller file size. If you have a choice of file formats in which to save a photograph choose PNG for use on Wikipedia. PNG is a lossless full-color format. JPEG is always a lossy format even at the highest quality settings. See [1] [2] and the wikipedia page about JPEG.
[edit] GIF
GIF is a lossless, 8-bit color format (maximum of 256 colors) and should be used mainly for animated images on Wikimedia Commons. PNG is almost always superior for still images (see the exception of clickable image maps discussed in the previous section). For animated images GIF uses lossless compression of images up to 256 colors per frame. (There exists an uncommon hack to render higher-color still images as GIF animations,[3] but PNG produces smaller results.)
If you are creating or editing a graphic (not a photograph), and have a choice of file formats to save it in, the preferences for Wikipedia/Wikimedia use is SVG first, then PNG, and lastly GIF (for image maps). Never save an image with more than 256 colors in the GIF format (except for image maps for use on Wikipedia). GIF always saves images as 256 colors or less. Converting higher-color images to the GIF format will degrade those images.
If you find some good free GIF graphics, diagrams, charts, maps, illustrations, etc. that would be useful for Wikipedia feel free to upload them to the commons as is. You, or others, can convert them to SVG later if need be. For tools and help see Commons:Chart and graph resources. SVG is especially useful for graphics with text or labels.
[edit] PNG
PNG and SVG are better for drawings / diagrams (SVG is preferred when creating diagrams etc, PNG is good for scanned images, or for print-quality photographs).
PNG is a "lossless" format, meaning that the exact pixel color is preserved when saving and to be used for any kind of diagram that is not available in SVG format.
[edit] SVG
- See also Wikipedia:Graphic Lab/Resources/SVG
SVG is an XML-based vector graphics format, so it can be scaled at will without getting blurry or "pixelated", is easy to edit, and usually produces reasonably small files. See Image:Bitmap VS SVG.svg. SVG is preferred when creating diagrams, flags, etc, while PNG is good for scanned images, or for print-quality photographs. You can find further information at Help:SVG and Commons:Transition to SVG.
SVG is good for diagrams, charts, illustrations, maps, and graphics of all kinds that need labels. This is because it is easy to change the text in the labels, and so it is easy to convert SVG images for use in all languages of Wikipedia. For example; see the map below labeled in several languages. Note that the image you are viewing is actually in the PNG format. SVG images stored at Wikipedia or on the Wikimedia Commons aren't actually what you see in your browser. MediaWiki converts the SVG image to a PNG image. The SVG format is the working format of the stored image so that people can more easily convert images for use in different languages.
|
Български. Bulgarian |
Norsk (bokmål). Norwegian |
[edit] Sound
On Wikimedia Commons, the file types we recommend are: Ogg (using FLAC, Speex, or Vorbis codecs) or MIDI (with extension .mid)
Non-free formats and lesser-known free formats must be converted before uploading - there is currently no legitimate way to store pristine original data for conversion to future formats or for use when patents expire, even if the license of a given work requires distributing such pristine original data (as is often the case for works distributed under the GNU Free Documentation License or other copyleft licenses).
Commons cannot accept MP3 sound files—there are numerous patent claims on MP3, making it illegal in some countries to use open source software with MP3, and even proprietary software companies are being threatened with various lawsuits.
The Commons also does not accept tracker formats, nor does it accept sound fonts for use with MIDI files. If it is important that a musical passage be heard with specific instrument definitions that General MIDI does not provide for, and the license allows it, use your tracker software to render the passage to RIFF WAVE, and then encode it to Ogg Vorbis.
[edit] Ogg
Speex is intended for recordings of speech, Vorbis is for general audio and is lossy (quality is reduced) — FLAC is for general audio and is lossless (quality is preserved), but current file size caps prevent its use for anything but short clips. In most cases, Vorbis should be used.
Do note that with FLAC, a native container format exists. If your output file has the extension .flac, it is likely using the native container format. You should not simply rename this to .ogg, instead you need to convert the container to .ogg.
[edit] Ogg Vorbis (audio)
Vorbis is a lossy audio codec. Also see the players for Ogg Theora videos below—they can also play Vorbis audio.
[edit] Video
Videos must be Ogg files using the Theora video codec. Again, non-free formats must be converted before uploading.
[edit] Ogg Theora (video)
Theora is a lossy video codec (see en:Theora). (Note: most software mentioned at Commons:Software should also be able to play Ogg Vorbis audio.)
[edit] Scanned text documents
Use DjVU. See Commons:DjVu.
See also Help:Scanning for advice on scanning non-text items.
[edit] See also
- Category:Commons resources - resources, help, tools, links, FAQs, labs, software, etc..
- Commons:Map resources
- Commons:Chart and graph resources
- en:Wikipedia:Graphic Lab/Image workshop
- meta:Philip Greenspun illustration project/Requests - request creation/improvement of illustrations.
- Wikipedia:WikiProject Illustration - Ask project members for help.
- Wikipedia talk:WikiProject Illustration - Ask at this talk page.
- Category:Wikipedia image help
[edit] Tutorials for related topics
- Commons:First steps/Quality and description
- Commons:Media help: Help for how to play and create media files.
- Help:Converting video: Help for converting video format.
- Help:Creating a DjVu file
- Help:Scanning
- Commons:Software: If you need help with viewing or creating these formats, please see the useful software.

