exif

package
v0.87.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package exif holds the leaf EXIF readers shared by the framework's image-adjacent packages. It exists so framework/file (which must not link the image codecs, see the layering rule pinned by framework/crud's TestUploadPathDoesNotLinkImageCodecs) and framework/image can share one TIFF walker without either importing the other: it is a leaf with no gofastr imports, sitting beside internal/casing at L1.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTIFFOrientation

func ParseTIFFOrientation(tiff []byte) int

ParseTIFFOrientation reads a TIFF stream and returns the orientation tag (0x0112) from IFD0, or 0 if absent. Only the orientation tag is parsed; full EXIF support is intentionally out of scope.

It replaces the two byte-identical copies framework/file/strip.go (parseTIFFOrientation, formerly a leaf-local twin kept because file could not import framework/image) and framework/image/exif.go (parseTIFFOrientation, readJPEGOrientation's IFD walker).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL