Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-19T03:17:58.000Z (11 months ago)
- Last Synced: 2024-10-31T00:50:46.344Z (about 2 months 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
[![Go Reference](https://pkg.go.dev/badge/github.com/houseme/imagerelated.svg)](https://pkg.go.dev/github.com/houseme/imagerelated)
[![Action-CI](https://github.com/houseme/imagerelated/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/houseme/imagerelated/actions/workflows/go.yml)
![GitHub](https://img.shields.io/github/license/houseme/imagerelated?style=flat-square)
![GitHub go.mod Go version (branch)](https://img.shields.io/github/go-mod/go-version/houseme/imagerelated/main?style=flat-square)Picture type information and get picture-related suffixes
## Install
```bash
go get -u -v github.com/houseme/imagerelated@main
```## Usage
```go
package mainimport (
"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)