Commons:Maximum file size/ja

コモンズにおける全タイプのファイルサイズの上限は、5GiB5,368,709,120バイト[1]です。分割アップロードをサポートしているアップロードウィザード等によるアップロードの場合や、サーバー側のアップロードを用いた場合は、ファイルサイズはこの上限よりも小さくなっている必要があります[2][3]。それ以外の場合、上限はアップロード時の技術的な問題から、100MiB104,857,600バイト)[4]となっています[5][6]

つまり、ファイルをはじめに分割し、分割したものをそれぞれ個別のファイルとしてアップロードしない限り、上限値を超えるファイルをアップロードすることはできません。{{Split file}} を使うと、一つのファイルを分割して得られた個々の分割ファイルを互いにリンクさせることができます。

注意 大きなサイズのファイルをアップロードする際は、可能な限り分割せずにサイズの制限内に保つようにしてください。これを行うには、ファイル形式の変更や、実際には必要のないファイル部分の削除、低解像度化、圧縮レベルの向上など、様々な方法があります。(細かな部分が更に失われると品質が大幅に低下するなどといったように)これらの対策では不十分な場合にのみ、ファイルを分割してください。

特に、TIFF画像はサイズが非常に大きいことが多いものの、圧縮を有効にするとファイルサイズを縮小することができます。圧縮方法がロスレス圧縮(deflateや​​LZWなど)であれば、ファイルサイズの縮小によって画質が影響を受けることはありません(ただし、あまり知られていない圧縮方法には注意が必要です。データ損失が発生したり、一部のソフトウェアとの互換性が失われたりする可能性があります)。

一方で、個々のアカウントによるアップロードの “合計” サイズには制限がありません。ただし、数テラバイトに及ぶような一括アップロードを予定している場合は、システム管理者に警告することをお勧めします。

なお、大きなSVGファイル(5MiB以上)には、翻訳をファイルの先頭近くに表示する必要があります。

アップロード可能なファイルサイズの上限

While hosting files up to 5 GiB is supported, the maximum file size for uploading is 100MB. The UploadWizard and several community-supported tools can use chunked uploading to upload such files in smaller (<100MB) pieces that are reassembled on the server.

In general you should be able to upload files close to the 5 GiB limit using chunked uploads without any issues. In the past bugs broke most large uploads, but as of October 29, 2021, these have been fixed now.[7]. Large uploads using the upload-by-url functionality may still timeout (especially those from archive.org[8]). In these cases you are recommended to download the file locally and then re-upload it using chunked uploads.

If you are still unable to upload the file (receiving 503/504 or "stash failed" type errors), request a server-side upload.

サムネイルの上限サイズ

Since December 17, 2021 the servers have no size limit for generating thumbnails. Instead, a timeout of 59 seconds for generating thumbnails was configured by using the new Thumbor service.[9]

However, for large GIF animations the limit is currently 100 megapixels. For files where the software does not provide thumbnails because of this limitation, a thumbnail version (either a full-sized JPEG or a smaller PNG) should be uploaded for thumbnail/preview purposes, and linked with the main file. The templates {{Archival version}} and {{Compressed version}} are available for this.

An unrelated reason thumbnails may fail to display (example) is for very long filenames – so long that they approach the 255-byte limit of filename length (which for some cases with non-ASCII characters may be much less than 255 characters, due to UTF-8). It is impossible to upload a file that has a name this large, but it is possible to move a file to such a name.[10]

脚注

  1. gerrit:280831, gerrit:1002813
  2. Originally 500 MiB, increased to 1,000 MiB in November 2013, increased to 2,047 MiB in Feb 2016, increased to 4 GiB in April 2016, increased to 5 GiB in Feb 2024
  3. 4 GiB were a hard limit because of how MediaWiki stored file sizes, as 32-bit integers. It is highest number of bytes that a 32-bit integer can represent (phab:T191805). The 5 GiB limit comes from the container size supported by the OpenStack Swift software (phab:T191802).
  4. It has been 20 MB for a while and was raised to 100 in November 2008.
  5. Village pump (2011-11)
  6. Wikitech-l: Upload file size limit (2010-07)
  7. wikitech:Incident documentation/2021-11-04 large file upload timeouts
  8. T295009: Improve download speed from archive.org on appservers
  9. configuration change, Phab:T291014#7367570: 59 seconds timeout
  10. phab:T32202

ヘルプ

Category:Commons files/ja
Category:Commons files/ja