Skip to content

elbuo8/filepreviews-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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