Picture type information and get picture-related suffixes
go get -u -v github.com/houseme/imagerelated@main
package main
import (
"fmt"
"github.com/houseme/imagerelated"
)
func main() {
// Get the suffix of the picture
fmt.Println(imagerelated.ImageExt("testdata/golang.png"))
// Get the type of the picture
fmt.Println(imagerelated.ImageType("testdata/golang.png"))
}
FeiE is primarily distributed under the terms of both the Apache License (Version 2.0)