Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/easygithdev/imageio
Input / output for image files in Golang
https://github.com/easygithdev/imageio
Last synced: about 1 month ago
JSON representation
Input / output for image files in Golang
- Host: GitHub
- URL: https://github.com/easygithdev/imageio
- Owner: EasyGithDev
- License: mit
- Created: 2022-03-22T14:56:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T15:23:38.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T22:25:33.444Z (7 months ago)
- Language: Go
- Size: 705 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imageio
Input / output for image files in Golang## RGB Reader
Read a RGB file from a io.reader.
RGB files are 24 bits true color (8 bits per channels).
```go
img, _ := rgb24.Decode(f, &rgb24.Options{Width: width, Height: height})
```## RGB Writer
Write a RGB file from a io.writer and go image.
The writer may lose some informations due to the conversion between uint32 into byte.
```go
img,_ := jpeg.Decode(infile)
rgb24.Encode(outfile, img)
```