globocom / gothumbor

Golang client for Thumbor Image Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gothumbor

GoDoc

gothumbor allows easy usage of Thumbor in Go.

Using it

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 © Globo.com

Contributors

Click here to see the list of contributors.

About

Golang client for Thumbor Image Service

License:MIT License


Languages

Language:Go 100.0%