Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/globocom/gothumbor

Golang client for Thumbor Image Service
https://github.com/globocom/gothumbor

Last synced: 12 days ago
JSON representation

Golang client for Thumbor Image Service

Awesome Lists containing this project

README

        

gothumbor
=========

[![GoDoc](https://godoc.org/github.com/globocom/gothumbor?status.svg)](https://godoc.org/github.com/globocom/gothumbor)

gothumbor allows easy usage of [Thumbor] in Go.

Using it
-------
```go
myKey := "my-very-secret-key"
myImageURL := "my-domain.com/static/images/fancy-image.png"
thumborOptions := gothumbor.ThumborOptions{Width: 540, Height: 480}
newURL, err := gothumbor.GetCryptedThumborPath(myKey, myImageURL, thumborOptions)
```

With these variables the values of:

* newURL: AGp4diIF89Cm2ugmDGjhycikYjY=/540x480/my-domain.com/static/images/fancy-image.png
* err: nil

License
-------

[MIT][mit] © [Globo.com][globocom]

Contributors
------------

Click [here][contributors] to see the list of contributors.

[Thumbor]: https://github.com/thumbor/thumbor
[mit]: https://github.com/globocom/gothumbor/blob/master/LICENSE
[globocom]: https://github.com/globocom
[contributors]: https://github.com/globocom/gothumbor/graphs/contributors