[33] [DFN[Exif]] は、[[媒体]]の[[メタデータ]]の記述形式の1つです。

* 仕様書

[REFS[
- [27] 日本語原文 ([TIME[2013-11-18 10:05:28 +09:00]]) <http://www.cipa.jp/std/documents/j/DC-008-2012_J.pdf>
- [28] 英訳 ([TIME[2013-11-18 10:05:12 +09:00]]) <http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf>
- [17] [CITE[Guidelines for Handling Image Metadata]]
]REFS]

[29] [[Exif]] は [[CIPA]] と [[JEITA]] の[[規格]]となっています。
両団体から出版されていますが、技術的には同内容であるとされています。

[30] [[CIPA]] は[[コピー]]不可の [[PDF]] を無償公開しています。

[31] [[JEITA]] は [[Flash]] を無償公開すると共に、有料版を販売しています。

[32] [[日本語]]版と[[英語]]版があり、[[日本語]]版が[[正文]]とされています。

* 構文

[34] 
[FIG(short list)[
- [[Exifの日時形式]]
]FIG]

* メモ

[1]
[CITE[Flickr の位置情報タグ付け機能と EXIF の位置情報 / おのひろきおんらいん]] <http://onohiroki.cycling.jp/2006-08-30-1>
([[名無しさん]] [WEAK[2006-09-01 12:59:00 +00:00]])

[2] [CITE@en[Re: ''''''[''''''whatwg'''''']'''''' metadata attribute for media]]
( ([[Ian Hickson]] 著, [TIME[2012-12-12 09:58:46 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Dec/0107.html>


[3] [CITE[iOSのSafariとChromeだけ画像のExif情報を参照して画像の向きを補正して表示してる | hideito.com]]
( ([TIME[2013-11-01 05:42:31 +09:00]] 版))
<http://www.hideito.com/blog/archives/432>

[4] [CITE@en[Bug 23511 – Expose EXIF data of images in <img> elements]]
( ([TIME[2013-10-14 22:59:47 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=23511>


[5] [CITE[ipad - How can I force iOS safari to ignore EXIF rotation? - Stack Overflow]]
( ([TIME[2014-02-04 07:28:00 +09:00]] 版))
<http://stackoverflow.com/questions/10517293/how-can-i-force-ios-safari-to-ignore-exif-rotation>

[6] [CITE[Issue 56845 - chromium - EXIF orientation is ignored - An open-source project to help move the web forward. - Google Project Hosting]]
( ([TIME[2014-02-04 07:32:20 +09:00]] 版))
<https://code.google.com/p/chromium/issues/detail?id=56845>

[7] [CITE[Bug 50847 – EXIF orientation in JPEG]]
( ([TIME[2014-02-04 07:32:41 +09:00]] 版))
<https://bugs.webkit.org/show_bug.cgi?id=50847>

[8] [CITE[Bug 100191 – ''''''[''''''chromium'''''']'''''' '''['''meta''']''' Add auto-detection of image orientation from EXIF information]]
( ([TIME[2014-02-04 07:34:03 +09:00]] 版))
<https://bugs.webkit.org/show_bug.cgi?id=100191>

[9] [CITE[''''''[''''''whatwg'''''']'''''' canvas drawImage and EXIF orientation metadata]]
( ([TIME[2014-04-29 23:36:07 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2014-April/254180.html>

[10] [CITE[デジタルスチルカメラ用画像ファイルフォーマット規格 (Exif)Ver 2.1]] ([CODE[2003-10-24 16:19:35 +09:00]] 版) <http://it.jeita.or.jp/document/publica/standard/exif/japanese/jeida49ja.htm>

[11] [CITE[デジタルスチルカメラ用画像ファイルフォーマット規格 (Exif)Ver 2.1]] ([TIME[2003-10-24 16:19:35 +09:00]] 版) <http://it.jeita.or.jp/document/publica/standard/exif/japanese/jeida49ja.htm>

[12] ([TIME[2004-08-04 00:26:48 +09:00]] 版)
<http://www.clavis.ne.jp/~hre/files/Exifj.pdf>

[13] [CITE@en[Bug 23510 – <canvas>: Allow EXIF data to be passed to toBlob()]]
( ([TIME[2013-10-14 22:59:36 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=23510>


[14] [CITE[Issue 413272 - chromium - Image (Exif) orientation not working certain cases - An open-source project to help move the web forward. - Google Project Hosting]]
([TIME[2015-03-16 22:54:31 +09:00]] 版)
<https://code.google.com/p/chromium/issues/detail?id=413272>

[FIG(quote)[
[FIGCAPTION[
[19] [CITE@ja[初心者向け! ブログに載せるデジカメ写真のExif情報について - ハート♥剛毛系]]
([TIME[2016-07-05 17:00:28 +09:00]])
<http://salucoro.hatenablog.com/entry/2014/01/06/231105>
]FIGCAPTION]

> ちなみに、TwitterとFacebookは自動で写真のExif情報は削除されます。
> 安心して使えますね。
> が! 私がやらかした事件が!
> 人気写真SNS「Instagram」は、Instagram上で見る限りは写真のExif情報は見られません。しかし、Instagramで加工した写真そのものにはExif情報は残ってるんですね。なので、カメラロールにある写真をブログにアップした場合は当然そのまま載ります。

]FIG]


[20] [CITE@ja[価格.com - 『撮影方向(方位)を数値で記録してくれるデジカメは?』 デジタルカメラのクチコミ掲示板]]
([TIME[2016-07-05 17:45:17 +09:00]])
<http://bbs.kakaku.com/bbs/-/SortID=14437305/>


[26] [CITE@en[Exchangeable image file format - Wikipedia, the free encyclopedia]]
([TIME[2016-07-05 04:19:12 +09:00]])
<https://en.wikipedia.org/wiki/Exchangeable_image_file_format>

[FIG(quote)[
[FIGCAPTION[
[15] [CITE[EXIF Tags]]
([TIME[2016-05-07 01:16:12 +09:00]])
<http://owl.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html>
]FIGCAPTION]

> The table below lists all EXIF tags. Also listed are TIFF, DNG, HDP and other tags which are not part of the EXIF specification, but may co-exist with EXIF tags in some images. Tags which are part of the EXIF 2.3 specification have an underlined Tag Name in the HTML version of this documentation.

]FIG]


[16] [CITE[Image::ExifTool - search.cpan.org]]
([TIME[2016-07-05 22:42:00 +09:00]])
<http://search.cpan.org/dist/Image-ExifTool/lib/Image/ExifTool.pod>

[18] [CITE@en[23510 – <canvas>: Allow EXIF data to be passed to toBlob()]]
([TIME[2017-07-23 13:19:04 +09:00]])
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=23510>

[21] [CITE@en[23511 – <img>: Expose EXIF data of images in <img> elements]]
([TIME[2017-07-23 16:31:44 +09:00]])
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=23511>

[22] [CITE[スマホでカメラ撮影した画像をcanvasに描画すると、横表示されてしまう問題 - Qiita]]
([TIME[2017-10-13 16:53:41 +09:00]])
<https://qiita.com/mo49/items/a3d61d97f1883ead333b>

[23] [CITE@en[<img> で EXIF の回転情報を考慮して表示したい]]
([TIME[2017-10-13 16:55:51 +09:00]])
<https://gist.github.com/xl1/55aa630747d7eb4fa97361baa80bab63>

[24] [CITE@en[exif-js/exif-js: JavaScript library for reading EXIF image metadata]]
([TIME[2018-06-25 20:01:03 +09:00]])
<https://github.com/exif-js/exif-js>

[25] [CITE[名称文字]], [TIME[2016-11-24T08:42:00.000Z]], [TIME[2020-11-05T11:56:31.227Z]] <http://gattin.world.coocan.jp/kanji/meisho.htm>

ここの1番上の写真は、被写体の正立から[[時計回り]]に90°[[回転]]している。
[[EXIF]] の orientation が [N[6]] で、これは画像データを[[時計回り]]に90°[[回転]]して表示するべきという意味。

このページが書かれていた当時の [[Webブラウザー]]は
[CODE[[[image-orientation]]: none]]
相当だったので、被写体正立で表示されていたのだろう。
それが今では
[CODE[from-image]]
がデフォルトになったので、
被写体が寝かされて表示されてしまっている。

画像データは被写体正立なのに [[EXIF]] の orientation が [N[6]]
なのは、おかしい。画像編集で回転させたのに、
編集ソフトが orientation をそのまま残したものか?


- [35] [CITE@ja[「聖書と防水」3部作 - ROOF-NET ON LINE MAGAZINE]], [TIME[2020-11-10T06:44:10.000Z]] <http://roof-net.jp/index.php?%E3%80%8C%E8%81%96%E6%9B%B8%E3%81%A8%E9%98%B2%E6%B0%B4%E3%80%8D%EF%BC%93%E9%83%A8%E4%BD%9C#content_1_28>
-- [36] [CITE[auto-oMxRuN.jpg (287×448)]], [TIME[2012-03-13T06:30:28.000Z]], [TIME[2020-11-10T06:44:26.173Z]] <http://roof-net.jp/swfu/d/auto-oMxRuN.jpg>

[37] [[Chrome]] で表示すると[[時計回り]]に90°[[回転]]している。
[CODE[[[image-orientation]]: none]]
で正立する。 [[EXIF]] orientation [N[6]]。



[38] [CITE@ja[「單」か「単」か 「ひだ」を歩く~後編~ - ことばマガジン:朝日新聞デジタル]], [[The Asahi Shimbun Company]], [TIME[2020-11-17T11:58:48.000Z]] <http://www.asahi.com/special/kotoba/archive2015/photo/photo.html%3Fphoto=%252FS2007%252Fupload%252F2011070300003_15.jpg.html>

[39] [[Firefox]] で表示すると[[反時計回り]]に90度回転している。
[CODE[[[image-orientation]]: none]]
で正立する。 [[EXIF]] orientation [N[8]]。



[40] [CITE@ja[【SNS】Facebook、Twitter、InstagramでExifが自動削除されるのか? - たおさんのMyanmar Life]], [TIME[2023-04-03T03:09:39.000Z]] <https://taosan.org/exif-for-fb-twitter-instagram/>