Skip to content

elbuo8/filepreviews-go

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

Filepreviews.io API Wrapper for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages