Skip to content

Commit 0af89bf

Browse files
committed
Added new heic library
1 parent baf6102 commit 0af89bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88
"image/png"
99
"os"
1010

11+
_ "github.com/jdeng/goheif"
1112
_ "golang.org/x/image/bmp"
1213
_ "golang.org/x/image/tiff"
1314
_ "golang.org/x/image/webp"
1415
_ "image/jpeg"
1516
_ "image/png"
16-
//_ "github.com/adrium/goheif"
1717
)
1818

1919
// NewRGBA is a wrapper for image.RGBA which returns a new image of the desired size filled with color.
@@ -200,7 +200,7 @@ func SaveImage(img Image, name string) error {
200200
}
201201

202202
// ReadImage is a utility function to read an image from a file.
203-
// The following formats are supported - bmp, jpeg, png, tiff, webp.
203+
// The following formats are supported - bmp, heic, jpeg, png, tiff, webp.
204204
func ReadImage(name string) (Image, error) {
205205
f, err := os.Open(name)
206206
if err != nil {

0 commit comments

Comments
 (0)