Skip to content

houseme/imagerelated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Picture type information and get picture-related suffixes

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages