leonardehrenfried / imgix-url-scala   0.0.7

Apache License 2.0 GitHub

A dependency-free library for constructing Imgix URLs

Scala versions: 2.12
Scala.js versions: 0.6

imgix-url

Latest version Scala.js Build Status

A tiny library for constructing Imgix URLs. Also available for ScalaJS.

Installation

libraryDependencies += "io.leonard" %%% "imgix-url" % "$version"

Usage

val builder = io.leonard.imgix.ImgixUrlBuilder("bucketname")
val url = builder.width(150).height(150).build("some-image.jpg")

There are many more parameters that can be added to an image URL. Just explore with your IDE.