Documentation ¶
Index ¶
Constants ¶
View Source
const (
// HeifMediaType is the name of the registered HEIF parser.
HeifMediaType = "heif"
)
View Source
const (
// JpegMediaType is the name of the registered JPEG parser.
JpegMediaType = "jpeg"
)
View Source
const (
// PngMediaType is the name of the registered PNG parser.
PngMediaType = "png"
)
View Source
const (
// TiffMediaType is the name of the registered TIFF parser.
TiffMediaType = "tiff"
)
View Source
const (
// WebpMediaType is the name of the registered WEBP parser.
WebpMediaType = "webp"
)
Variables ¶
This section is empty.
Functions ¶
func Formats ¶
func Formats() (formats []riimage.MediaParser)
Formats returns all registered media-parsers.
func GetFormatForBytes ¶
GetFormatForBytes returns the first MP that can parse the given bytes. This has an obvious cost.
func GetFormatForExtension ¶
GetFormatForExtension returns a MediaParser for the given extension or nil if none associated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.