properly support tga and webp images

This commit is contained in:
2025-05-08 22:06:30 -04:00
parent b186ea934d
commit bad6802bd1
5 changed files with 69 additions and 18 deletions

View File

@@ -71,6 +71,15 @@ var Valid = []FileDescription{
OSTypes: []string{"TIFF"},
ItemContentTypes: "public.tiff",
},
{
TkTypeName: "WEBP",
MacExtensions: []string{"webp", "WEBP"},
IconFile: "webp.icns",
MIMETypes: []string{"image/webp"},
TypeName: "WebP Image",
OSTypes: []string{"WEBP"},
ItemContentTypes: "org.webmproject.webp",
},
}
func GetTkTypes(fds []FileDescription) []tk.FileType {
@@ -86,7 +95,3 @@ func GetTkTypes(fds []FileDescription) []tk.FileType {
}
return fts
}
func main() {
fmt.Println("test")
}