About

A file can hold two stories

Last updated 22 November 2026

One is the picture, which is what you meant to send. The other is a set of notes about how it was made, which the camera added and most people never see. This page reads the second one out loud, then hands you a copy with it removed.

What a metadata block is

A JPEG is not one object. It is a sequence of segments with a picture at the end, and the format reserves the early segments for information the decoder does not need to draw anything. EXIF lives in APP1: a two byte byte order mark, a magic number, then a tree of directories, each holding entries of an id, a type, a count and a value. The value may be a number, a string, or a pointer to another directory. That tree is why a camera can write a shutter speed, a lens model and a coordinate without touching a single pixel.

XMP is the newer one, plain XML in its own APP1 segment, and it often repeats the EXIF fields in text plus a few of its own: a title, a description, a city. IPTC sits in APP13 and comes from the picture desk side of the trade, with a headline, a byline and a copyright line. A comment segment is free text that anyone could have written.

How the reader walks it

For a JPEG the reader steps from marker to marker, reading each segment's length, and stops when it reaches the scan marker, which is where the compressed image begins. For a PNG it reads a signature and then a chain of chunks, each with a length, a four letter type and a checksum, and inflates the compressed text chunks so a zTXt is not left as noise. For a WebP it reads the RIFF header and the chunks that follow, where EXIF and XMP sit beside the image as equals. All three hand the same TIFF reader the same kind of block, which is why a camera's tag names read the same whatever container they arrived in.

Values are printed rather than dumped. A rational of 1 over 250 becomes 1/250 s, a flash bitmask becomes words, an orientation of 6 becomes rotated 90 clockwise, and a timestamp in the camera's colon notation becomes something a person can read. Tags the reader does not know are still shown, with their hex id and their type, because a value you cannot name is still a value the file carries.

How the remover works

The first mode is subtraction. The file is walked again, and the segments or chunks named in the options are left out of the output while everything else is copied byte for byte. A JPEG keeps its own scan data untouched, a PNG keeps each chunk's own length and checksum so the rest stays valid, and a WebP gets its RIFF size corrected and its feature flags cleared so a reader does not go looking for a block that is no longer there. The picture cannot change, because the picture was never decoded.

The second mode is the one every image editor uses: decode, draw to a canvas, encode again. That removes everything, including blocks this page does not know about, at the cost of a small generation loss and any colour profile the original carried. Both results are read back with the same parser before the download link appears, so the report under it is a measurement rather than a promise.

What the samples are

The two sample buttons draw a landscape with a canvas and then build the metadata by hand: a TIFF tree with a camera, a lens, an exposure and a GPS directory, an XMP packet, a comment, and for the PNG a set of text chunks and an eXIf chunk. The camera is a fixture, the city is invented, and the coordinates land in an empty stretch of desert. Nothing in either sample belongs to a person, a device or a place, which is the point: you can inspect the reader without putting your own photographs into it.

What it leaves to you

Who made it

Pikkola Lab builds small tools that keep the work in the browser. This is tool No. 58. Write to hello@pikkola.com with a file whose metadata this page read wrong, and say which camera wrote it.

Back to the studio

소개

한 파일에 두 가지 이야기가 담깁니다

최종 수정 2026년 11월 22일

하나는 보내려던 그림입니다. 다른 하나는 그 그림이 어떻게 만들어졌는지에 대한 기록으로, 카메라가 덧붙였고 대부분은 보지 못합니다. 이 페이지는 두 번째를 소리 내어 읽고, 그것을 지운 사본을 건넵니다.

메타데이터 블록이란

JPEG은 하나의 덩어리가 아닙니다. 세그먼트의 연속이고 끝에 그림이 붙습니다. 규격은 앞쪽 세그먼트를 해독기가 그림을 그리는 데 필요하지 않은 정보를 위해 비워 두었습니다. EXIF는 APP1에 삽니다. 바이트 순서를 알리는 두 바이트, 마법 번호, 그리고 디렉터리의 나무가 이어집니다. 각 디렉터리는 아이디와 형식, 개수, 값을 가진 항목을 담고, 값은 숫자나 문자열이거나 다른 디렉터리를 가리키는 포인터입니다. 카메라가 픽셀 하나 건드리지 않고 셔터 속도와 렌즈 이름, 좌표를 적을 수 있는 이유입니다.

XMP는 더 새로운 방식으로, 자기 APP1 세그먼트에 든 평범한 XML입니다. EXIF 값을 글로 다시 적고 제목이나 설명, 도시 같은 자기 항목을 더하기도 합니다. IPTC는 APP13에 있고 사진 편집 데스크 쪽에서 온 기록이라 헤드라인과 바이라인, 저작권 표시가 들어갑니다. 설명 세그먼트는 누구라도 쓸 수 있는 자유 텍스트입니다.

읽는 방식

JPEG에서는 표식에서 표식으로 옮겨 가며 각 세그먼트의 길이를 읽고, 압축된 그림이 시작되는 스캔 표식에서 멈춥니다. PNG에서는 서명을 확인하고 길이와 네 글자 형식, 체크섬을 가진 청크의 사슬을 읽으며, 압축된 텍스트 청크는 풀어서 zTXt가 잡음으로 남지 않게 합니다. WebP에서는 RIFF 헤더와 뒤따르는 청크를 읽고, 이때 EXIF와 XMP는 그림과 나란히 같은 자격으로 놓입니다. 셋 모두 같은 TIFF 해독기에 같은 모양의 블록을 건네므로, 어떤 그릇에 담겨 왔든 태그 이름이 같게 읽힙니다.

값은 덤프하지 않고 사람이 읽을 수 있게 적습니다. 250분의 1이라는 유리수는 1/250초가 되고, 플래시 비트마스크는 문장이 되고, 방향 값 6은 시계 방향 90도 회전이 되며, 콜론으로 적힌 촬영 시각은 눈에 익은 날짜가 됩니다. 모르는 태그도 16진수 아이디와 형식과 함께 보여 줍니다. 이름을 붙이지 못해도 파일이 품은 값은 값이기 때문입니다.

지우는 방식

첫 번째 방식은 빼기입니다. 파일을 다시 훑으면서 고른 항목의 세그먼트와 청크를 결과에서 빼고 나머지는 바이트 단위로 옮깁니다. JPEG은 스캔 데이터를 그대로 두고, PNG는 청크마다 자기 길이와 체크섬을 그대로 가져서 나머지가 성립하며, WebP는 RIFF 크기를 고치고 기능 플래그를 내려 없는 블록을 찾아가지 않게 합니다. 그림을 해독한 적이 없으니 그림은 달라질 수 없습니다.

두 번째 방식은 모든 이미지 편집기가 쓰는 방법입니다. 해독하고 캔버스에 그리고 다시 인코딩합니다. 이 페이지가 모르는 블록까지 모두 지우는 대신 세대 손실이 조금 생기고 원본의 색 프로필은 넘어가지 않습니다. 두 결과 모두 내려받기 전에 같은 해독기로 다시 읽으므로, 그 아래 보고는 약속이 아니라 측정입니다.

샘플이란

샘플 버튼 두 개는 캔버스로 풍경을 그리고 메타데이터를 직접 만듭니다. 카메라와 렌즈, 노출이 든 TIFF 나무와 위치 디렉터리, XMP 패킷, 설명 문구를 넣고, PNG에는 텍스트 청크와 eXIf 청크를 더합니다. 카메라는 지어낸 기기이고 도시도 지어낸 이름이며, 좌표는 사막의 빈 자리에 놓입니다. 두 샘플 어디에도 사람이나 기기, 장소에 속한 값이 없습니다. 내 사진을 넣지 않고도 해독기를 살펴볼 수 있게 하려는 것입니다.

남겨 두는 일

만든 곳

피콜라 랩은 일을 브라우저 안에 두는 작은 도구를 만듭니다. 이것은 58호기입니다. 이 페이지가 잘못 읽은 파일과 그 파일을 쓴 카메라를 hello@pikkola.com으로 보내 주세요.

스튜디오로 돌아가기

概要

一つのファイルに二つの物語が入ります

最終更新 2026年11月22日

一つは送ろうとした絵です。もう一つはその絵がどう作られたかの記録で、カメラが加え、ほとんどの人は見ません。このページは二つ目を声に出して読み、それを消した複製を渡します。

メタデータのブロックとは

JPEG は一つの塊ではありません。セグメントの連なりで、最後に絵が付きます。規格は前のほうのセグメントを、復号器が絵を描くのに要らない情報のために空けてあります。EXIF は APP1 に住みます。バイト順を示す二バイト、魔法の番号、そしてディレクトリの木が続きます。各ディレクトリは ID、型、個数、値を持つ項目を抱え、値は数か文字列か、別のディレクトリを指すポインタです。カメラが画素を一つも触らずにシャッター速度とレンズ名、座標を書ける理由です。

XMP は新しい方式で、自前の APP1 セグメントに入る普通の XML です。EXIF の値を文で書き直し、題名や説明、都市などの項目を加えることもあります。IPTC は APP13 にあり、写真編集のデスク側の記録で、見出しと署名、著作権の表示が入ります。説明のセグメントは誰でも書ける自由な文です。

読み方

JPEG では目印から目印へ進みながら各セグメントの長さを読み、圧縮された絵が始まるスキャンの目印で止まります。PNG では署名を確かめ、長さと四文字の型、検査値を持つチャンクの連なりを読み、圧縮されたテキストは解いて zTXt が雑音として残らないようにします。WebP では RIFF ヘッダーと続くチャンクを読み、そこでは EXIF と XMP が絵と並んで同じ資格で置かれます。三つとも同じ TIFF の復号器に同じ形のブロックを渡すので、どの器に入っていてもタグの名前は同じに読めます。

値はそのまま並べず、人が読める形にします。250 分の 1 の有理数は 1/250 秒になり、フラッシュのビット列は文になり、向きの 6 は時計回りに 90 度回転になり、コロンで書かれた撮影時刻は見慣れた日付になります。知らないタグも 16 進の ID と型とともに示します。名前を付けられなくても、ファイルが抱える値は値だからです。

消し方

一つ目の方法は引き算です。ファイルをもう一度たどり、選んだ項目のセグメントやチャンクを結果から外し、残りはバイト単位で移します。JPEG はスキャンのデータをそのまま残し、PNG はチャンクごとの長さと検査値をそのまま持ち越すので残りは成り立ち、WebP は RIFF の大きさを直し機能の印を下ろして、もう無いブロックを探しに行かせません。絵を解いたことがないので、絵は変わりようがありません。

二つ目の方法は、あらゆる画像編集ソフトが使うやり方です。解いてキャンバスに描き、もう一度符号化します。このページが知らないブロックまで消える代わりに、世代の損失が少し生じ、元の色プロファイルは引き継がれません。どちらの結果も保存の前に同じ復号器で読み直すので、その下の報告は約束ではなく測定です。

見本について

二つの見本ボタンはキャンバスで風景を描き、メタデータを手で組み立てます。カメラとレンズ、露出の入った TIFF の木と位置のディレクトリ、XMP のパケット、説明の文を入れ、PNG にはテキストのチャンクと eXIf のチャンクを加えます。カメラは作り物の機材、都市も作り物の名で、座標は砂漠の空いた場所に置きます。どちらの見本にも人や機材、場所に属する値はありません。自分の写真を入れずに復号器を眺められるようにするためです。

残していること

作ったところ

Pikkola Lab は仕事をブラウザの中に置く小さな道具を作っています。これは第 58 号です。このページが読み違えたファイルと、それを書いたカメラを hello@pikkola.com まで送ってください。

スタジオに戻る