[18] image/*
は、内容が1つ以上の >>17
画像 >>17, >>23 を表していることを示します。
[22] 画像は、情報を見るために表示装置 (図形的画面、図形的印刷機、 FAX機など) が必要です >>21。
[15] image/*
の画像の多くは静止画ですが、
アニメーションGIF (image/gif
) や APNG
(image/png
)、MNG (image/mng
)
のようにアニメーションを表すものも含まれています。
[19] 部分型名が画像形式を表しています >>23, >>17。
[16] 画像の多くはバイナリーファイルですが、そのような制約はありません。
SVG (image/svg+xml
)、
XBM (image/x-xbm
)
のようにテキストファイルも含まれています。
[31] 画像型とは、
構文解析可能MIME型であって、型が
image
のものをいいます >>30。
[24] 未知の image/*
MIME型は、最低でも
application/octet-stream
として扱うべきです >>23。
[25] 安全で頑健な一般目的画像表示アプリケーションがあれば、未知の
image/*
MIME型のデータをそれに渡しても構いません >>23。
A media type of "image" indicates that the body contains an image. The subtype names the specific image format. These names are not case sensitive. An initial subtype is "jpeg" for the JPEG format using JFIF encoding [JPEG].
媒体型 "image" は本文が画像から成ることを示します。 亜型名は画像形式を指定します。この名前は大文字・小文字を区別しません。 初期亜型は JFIF 符号化を使う JPEG 形式用の "jpeg" です。
The list of "image" subtypes given here is neither exclusive nor exhaustive, and is expected to grow as more types are registered with IANA, as described in RFC 2048.
ここに示す "image" 亜型の表は排他的でも網羅的でも無く、 より多くの型が RFC 2048 で説明するとおり IANA で登録されることが期待されます。
Unrecognized subtypes of "image" should at a miniumum be treated as "application/octet-stream". Implementations may optionally elect to pass subtypes of "image" that they do not specifically recognize to a secure and robust general-purpose image viewing application, if such an application is available.
"image" の認識出来ない亜型は最低でも "application/octet-stream" として 扱うべきです。実装者は、具体的に認識出来ない "image" の亜型を 安全で頑強な一般目的画像表示応用があればそいつに渡すことを 任意に選んでも構いません。
NOTE: Using of a generic-purpose image viewing application this way inherits the security problems of the most dangerous type supported by the application.
参考: 一般目的画像表示応用をこの方法で使うと、応用が持つ 最も危険な種の安全問題を継承することになります。
[10] RFC 6466 - IANA Registration of the \x27image\x27 Media Type for the Session Description Protocol (SDP) ( ( 版)) http://tools.ietf.org/html/rfc6466
[6] 2002-12-29 18:34 名無しさん: IANAREG の最新の登録内容にあわせる & どんなのが使われてるのか軽く検索してみたんですが、後者が山程出てきました。ほんとにこんなの使ってるのか問詰めてみたいのもありますが。。。
[8] 画像処理ソフトウェアで亜型 == 拡張子 == 形式名として扱う変な奴が少なからずあるみたいで。
Content-Type: image/*
という頭欄をつけた中身が GIF 画像の MIME 実体を見かけました。 MUA の拡張子と媒体型の関連付けに変な値が設定したんでしょうかね?image/pjpeg
というのを使っているのが結構あるみたいですが、 IANAREG にはありません。 MIME 的にはプログレッシブJPEG でも image/jpeg
で大丈夫なんだと思います。image/j2k
だったと思いますが、まだ I-D で IANAREG には載っていないみたいです。image/x-png
とかしてる DQN がいます!![20] RFC 6466 - IANA Registration of the 'image' Media Type for the Session Description Protocol (SDP) ( 版) https://tools.ietf.org/html/rfc6466
[29] Block `image/*` resources loaded as script · whatwg/fetch@b561a73 ( 版) https://github.com/whatwg/fetch/commit/b561a73f23b7139d5f4bb0de322dc37e74af0091
[32] Use MIME type starting with image/ as image MIME type definition (annevk著, ) https://github.com/whatwg/fetch/commit/b9ad2f5c16d5c565ce25b336d1e6f5dce0f7a066
[33] Only use nosniff for "script" and "style" (annevk著, ) https://github.com/whatwg/fetch/commit/169de91ca9fa3ab91a860bc492caf5fa94c29592
[34] Define a new MIME type model, parser, and serializer (annevk著, ) https://github.com/whatwg/mimesniff/commit/cc81ec48288944562c4554069da1d74a71e199fb
[35] Editorial: tweak MIME type group definitions (domenic著, ) https://github.com/whatwg/mimesniff/commit/452938939d1d88e3c74f59f41f14579249130437
[36] Editorial: tweak MIME type group definitions by domenic · Pull Request #59 · whatwg/mimesniff () https://github.com/whatwg/mimesniff/pull/59