https://github.com/vimeo/go-imgparse
A small go library to efficiently parse the resolution of various image format streams.
https://github.com/vimeo/go-imgparse
Last synced: 9 months ago
JSON representation
A small go library to efficiently parse the resolution of various image format streams.
- Host: GitHub
- URL: https://github.com/vimeo/go-imgparse
- Owner: vimeo
- License: other
- Created: 2014-11-05T15:27:49.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T17:37:00.000Z (over 7 years ago)
- Last Synced: 2025-04-03T22:41:36.106Z (10 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 4
- Watchers: 12
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-imgparse #
**Description**
A small go library to efficiently parse the resolution of various image format streams. Can used with any `io.Reader`.
**Current Content Type Support**
- gif
- jpeg
- png
- webp
- webpll
- more to come
**Installing**
```
go get github.com/vimeo/go-imgparse/imgparse
```
**API**
The API is a single function call:
```go
import "github.com/vimeo/go-imgparse/imgparse"
imgparse.ParseRes(input io.Reader, contenttype string)
```
The `input` argument is any reader, and `contenttype` is any of the types listed above.