imagex_url_helper v0.1.1 ImagexUrlHelper View Source

Imagex helper functions for generating signed image urls.

Make sure to add your key, salt and prefix to your application env:

Example

config :imagex_url_helper,
  prefix: "https://img.example.com",
  salt: "your_imagex_salt",
  key: "your_imagex_key"

Link to this section Summary

Functions

Builds and signs a url with given parameters

Link to this section Functions

Link to this function

build_url(img_url, opts)

View Source

Builds and signs a url with given parameters

Examples

iex> ImagexUrlHelper.build_url("http://files.example.com/image.jpg", resize: 0, width: 300, height: 400)
"http://img.example.com/KkoVXq-WlnBU4-KAERxGZ887..."