guilhermebr / gothumbor

Golang client for Thumbor Image Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gothumbor

GoDoc Build Status Coverage Status

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 98.5%Language:Shell 1.5%