https://github.com/houseme/imagerelated
Picture type information and get picture-related suffixes
https://github.com/houseme/imagerelated
image image-ext image-type
Last synced: about 1 year ago
JSON representation
Picture type information and get picture-related suffixes
- Host: GitHub
- URL: https://github.com/houseme/imagerelated
- Owner: houseme
- License: apache-2.0
- Created: 2023-04-16T07:48:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T03:17:58.000Z (over 2 years ago)
- Last Synced: 2025-02-10T18:13:44.613Z (over 1 year ago)
- Topics: image, image-ext, image-type
- Language: Go
- Homepage: https://houseme.github.io/imagerelated/
- Size: 86.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Image-Related
[](https://pkg.go.dev/github.com/houseme/imagerelated)
[](https://github.com/houseme/imagerelated/actions/workflows/go.yml)


Picture type information and get picture-related suffixes
## Install
```bash
go get -u -v github.com/houseme/imagerelated@main
```
## Usage
```go
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)](LICENSE)