Skip to content

Commit b386159

Browse files
committed
More cleanup for incoming heif dependency
1 parent b7f68c3 commit b386159

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

main.go

+1-17
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func open(name string) ([]string, error) {
106106
return v, nil
107107
}
108108

109-
var extRE = regexp.MustCompile(`(?i)\.(jpe?g|gif|png|svg|bmp|bitmap|tiff?|webp)$`)
109+
var extRE = regexp.MustCompile(`(?i)\.(jpe?g|gif|png|svg|bmp|bitmap|tiff?|hei[vc]|webp)$`)
110110

111111
func render(w io.Writer, files []string) error {
112112
for i := 0; i < len(files); i++ {
@@ -135,22 +135,6 @@ func renderFile(w io.Writer, file string) error {
135135
return rasterm.Encode(w, img)
136136
}
137137

138-
/*
139-
func init() {
140-
"github.com/klippa-app/go-libheif"
141-
"github.com/klippa-app/go-libheif/library"
142-
err := libheif.Init(libheif.Config{LibraryConfig: library.Config{
143-
Command: library.Command{
144-
BinPath: "go",
145-
Args: []string{"run", "library/worker_example/main.go"},
146-
},
147-
}})
148-
if err != nil {
149-
panic(fmt.Sprintf("could not start libheif worker: %v", err))
150-
}
151-
}
152-
*/
153-
154138
/*
155139
func init() {
156140
_ "github.com/jcbritobr/pnm"

0 commit comments

Comments
 (0)