https://github.com/orsinium-labs/imgshow
Dead simple Go library to open a window with an image
https://github.com/orsinium-labs/imgshow
go golang image ui
Last synced: 3 months ago
JSON representation
Dead simple Go library to open a window with an image
- Host: GitHub
- URL: https://github.com/orsinium-labs/imgshow
- Owner: orsinium-labs
- License: mit
- Created: 2021-06-16T11:58:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T11:54:55.000Z (over 3 years ago)
- Last Synced: 2025-02-26T00:12:03.730Z (8 months ago)
- Topics: go, golang, image, ui
- Language: Go
- Size: 710 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgshow
Dead simple Go library to open a window with an image.
Only Linux (X server) is supported.
## Installation
```bash
go get github.com/orsinium-labs/imgshow
```## Usage
```go
stream, _ := os.Open("image.png")
img, _ := png.Decode(stream)
imgshow.Show(img)
```See [_examples](./_examples/) directory for more examples.
## Standing on the shoulders of giants
The code is based on [goiv](https://github.com/gen2brain/goiv) library which is an image viewer written on Go. Unfortunately, the project doesn't provide an API, so `imgshow` was born out of it.