diff --git a/data.go b/data.go index e6ea538..b1f2507 100644 --- a/data.go +++ b/data.go @@ -183,6 +183,9 @@ func verticalFlip(rgba *image.RGBA) { type DecoderFunc func(io.Reader) (image.Image, error) +// DefaultDecoderFunc is a DecoderFunc that uses image.Decode to decode images. +// In order to decode, you must import the image formats you wish to use. +// ex. import _ "image/png" func DefaultDecoderFunc(r io.Reader) (image.Image, error) { i, _, err := image.Decode(r) return i, err