Skip to content
Filepreviews.io API Wrapper for Go
Go
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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

You can’t perform that action at this time.