An open API service indexing awesome lists of open source software.

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.

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.