From 3b33ec466762750a35041f4aac7a6a132120e432 Mon Sep 17 00:00:00 2001 From: Allen Ray Date: Fri, 30 Aug 2024 19:52:30 -0400 Subject: [PATCH] add comment --- data.go | 3 +++ 1 file changed, 3 insertions(+) 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