https://github.com/vimeo/go-iccjpeg
A small utility package to extract ICC profiles from JPEGs.
https://github.com/vimeo/go-iccjpeg
Last synced: 6 months ago
JSON representation
A small utility package to extract ICC profiles from JPEGs.
- Host: GitHub
- URL: https://github.com/vimeo/go-iccjpeg
- Owner: vimeo
- License: other
- Created: 2014-11-05T15:27:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-05T15:30:53.000Z (about 11 years ago)
- Last Synced: 2025-04-25T14:44:38.299Z (9 months ago)
- Language: Go
- Size: 97.7 KB
- Stars: 5
- Watchers: 13
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-iccjpeg #
**Description**
A small utility package to extract ICC profiles from JPEG buffers.
**Installing**
```
go get github.com/vimeo/go-iccjpeg/iccjpeg/iccjpeg
```
**API**
The API is a single function call:
```go
import "github.com/vimeo/go-iccjpeg/iccjpeg"
iccjpeg.GetICCBuf(input io.Reader) ([]byte, error)
```
It takes an `io.Reader` with a JPEG, and returns a buffer with the embedded ICC profile from that JPEG, if there is one. If there is not one, it returns an empty buffer.