imagerelated

Image-Related

Go Reference Action-CI GitHub GitHub go.mod Go version (branch)

Picture type information and get picture-related suffixes

Install

go get -u -v github.com/houseme/imagerelated@main

Usage

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"))
}

License

FeiE is primarily distributed under the terms of both the Apache License (Version 2.0)