Documentation
¶
Overview ¶
Package png implements extraction and injection of EXIF and XMP metadata within PNG files.
PNG structure: 8-byte signature followed by chunks, each with: 4-byte length + 4-byte type + <length> bytes data + 4-byte CRC.
Relevant chunks:
- eXIf (PNG Extension, registered 2017): raw EXIF payload.
- iTXt with keyword "XML:com.adobe.xmp": XMP packet (RFC 2083 §12.13).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSignature = errors.New("png: invalid signature")
ErrInvalidSignature is returned when the input does not begin with the PNG magic bytes.
View Source
var ErrUnsupportedCompression = errors.New("png: unsupported compression method")
ErrUnsupportedCompression is returned when a compressed chunk uses an unknown compression method.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.