Go client library for the FilePreviews.io service. Generate image previews and metadata from almost any kind of file.
$ go get github.com/elbuo8/filepreviews-go
fp := filepreviews.New()
opts := &filepreviews.Options{}
_, err := fp.Generate("http://www.getblimp.com/images/screenshot1.png", opts)
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)