Filepreviews.io API Wrapper for Go
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
filepreviews.go
filepreviews_test.go

README.md

Filepreviews-Go

Go client library for the FilePreviews.io service. Generate image previews and metadata from almost any kind of file.

Installation

$ go get github.com/elbuo8/filepreviews-go

Example code

fp := filepreviews.New()
opts := &filepreviews.Options{}
_, err := fp.Generate("http://www.getblimp.com/images/screenshot1.png", opts)

Options

You can optinally send an options object.

fp := filepreviews.New()
opts := &filepreviews.Options{
	Pages: "1",
	Format: "png",
	Sizes: [1]string{"500x500"},
	Metadata: [1]string{"all"},
}
_, err := fp.Generate("http://www.getblimp.com/images/screenshot1.png", opts)

MIT