Skip to content

Dead simple Go library to open a window with an image

License

Notifications You must be signed in to change notification settings

orsinium-labs/imgshow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgshow

Dead simple Go library to open a window with an image.

Only Linux (X server) is supported.

Installation

go get github.com/orsinium-labs/imgshow

Usage

stream, _ := os.Open("image.png")
img, _ := png.Decode(stream)
imgshow.Show(img)

See _examples directory for more examples.

Standing on the shoulders of giants

The code is based on 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.

About

Dead simple Go library to open a window with an image

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages