leonardehrenfried / imgix-url-scala

A dependency-free library for constructing Imgix URLs

GitHub

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.