Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode writes img in the desired image format f to the out stream. If the selected format is a lossy format, quality between 1-100 represents the strength of compression with 1 being the highest compressions / lowest quality and 100 being the lowest compression / highest quality. If the format supports lossless compression (e.g. WebP) in addition to lossy compression, quality values > 100 represent lossless compression. Note, SVG cannot be encoded
func FormatParse ¶
FormatParse converts the string representation of format into the enum
func FormatParseFromAccept ¶
FormatParseFromAccept returns a format based on the supplied Accept header
func FormatParseFromFilename ¶
FormatParseFromFilename returns a format based on the supplied file extension
func FormatParseFromMIME ¶
FormatParseFromMIME returns a format based on the supplied MIME string
Types ¶
This section is empty.