Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes returns a human-readable size string (e.g. "2.5 MB"). Negative sizes are formatted with a leading minus sign.
func DecodeDimensions ¶
DecodeDimensions parses image dimensions from the header bytes. It supports PNG, JPEG, GIF (via image.DecodeConfig), and WebP, BMP, TIFF (via manual magic-byte parsing). Returns 0x0 if the format is not recognized or the header is too short to extract dimensions.
func ImageDimensions ¶
ImageDimensions decodes image dimensions from data for common image formats (PNG, JPEG, GIF, WebP, BMP, TIFF). Returns empty string for non-image or undecodable data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.