Documentation
¶
Overview ¶
Package imaging reads bounded image metadata, never pixel buffers or networks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PositiveAttribute ¶
PositiveAttribute deliberately rejects zero, signed/relative/malformed values. Their presence is author intent; inference must never repair or replace them.
Types ¶
type Decision ¶
type Decision struct {
Info
Added []string `json:"added,omitempty"`
Reason string `json:"reason"`
Candidates []Info `json:"candidates,omitempty"`
AuthoredWidth, AuthoredHeight int `json:"-"`
CompareSize bool `json:"-"`
}
Decision corresponds to one HTML img in document order. It carries source attribution through URL packing into the exact-final-byte validation stage.
type Info ¶
type Info struct {
Source string `json:"source"`
Format string `json:"format,omitempty"`
Width int `json:"intrinsicWidth,omitempty"`
Height int `json:"intrinsicHeight,omitempty"`
Bytes int `json:"bytes,omitempty"`
Raster bool `json:"raster,omitempty"`
Issue string `json:"issue,omitempty"`
Unknown string `json:"unknown,omitempty"`
}
Info contains metadata dimensions. Unknown/Issue makes them unsuitable for inferred layout, but known pixel counts still support absolute asset budgets.
Click to show internal directories.
Click to hide internal directories.