Commit b386159 1 parent b7f68c3 commit b386159 Copy full SHA for b386159
File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ func open(name string) ([]string, error) {
106
106
return v , nil
107
107
}
108
108
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)$` )
110
110
111
111
func render (w io.Writer , files []string ) error {
112
112
for i := 0 ; i < len (files ); i ++ {
@@ -135,22 +135,6 @@ func renderFile(w io.Writer, file string) error {
135
135
return rasterm .Encode (w , img )
136
136
}
137
137
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
-
154
138
/*
155
139
func init() {
156
140
_ "github.com/jcbritobr/pnm"
You can’t perform that action at this time.
0 commit comments