PIC+hen

A picture with HEN metadata. Share a goban snapshot, restore the position without OCR.

«Imagine if we could share kifu, tsumego, joseki images (PIC+hen) and study them directly in our favorite app.»

HEN Spec Libraries
A 19x19 goban position rendered from HEN notation

The image above is a live PNG+hen generated by a hen-worker.
It contains the exact board position as embedded metadata.
Extract it using exiftool -HEN image.png,
or load the image directly into play.GoShawk.cc/playgo/goban.html.

What is PIC+hen?

Goban as Data

An image of the board with the HEN string embedded, machine-readable and human-visible at the same time.
For PNG images, it is stored as a tEXt metadata chunk.
For GIF images, it is stored as a Comment Extension block.

Universal Interchange

Any app that supports HEN can import the position directly from the image file. Drag, drop, paste - the goban is restored instantly.

No OCR Needed

Unlike plain board screenshots, the position is stored losslessly. Extract it with exiftool, Pillow, or any standard image reader - no image recognition required.

Use Cases

Use cases 1–3 happen on App A (export).
Use cases 4–5 happen on App B (import).

App A - Export

UC 1

Copy HEN

Open a finished game, navigate to an interesting position.

Clipboard
UC 2

Copy Image URL

Navigate to a position, copy the image URL.

wrk.goshawk.cc/.../hen<HEN>.png
UC 3/a

Download PNG

Navigate to a position, download the goban picture as PNG.

PNG+hen file
UC 3/b

Download GIF

Navigate to a position, download the goban picture as GIF.

GIF+hen file

App B - Import

UC 4

Import HEN

Open an analysis goban and paste the HEN string.

Import HEN Goban updated

Reverse of UC 1.

UC 5/a

Import PNG Image

Open an analysis goban and load the PNG+hen picture → import it via paste, drop, or open, depending on the app.

Import picture Goban updated

Reverse of UC 3/A. The app reads the HEN from the PNG tEXt chunk.

UC 5/b

Import GIF Image

Open an analysis goban and load the GIF+hen picture → import it via paste, drop, or open, depending on the app.

Import picture Goban updated

Reverse of UC 3/B. The app reads the HEN from the GIF Comment Extension chunk.

Ecosystem