tricycle/elm-imgix/1.1.0

NOTE: the latest version is 1.6.0

Renamed to bellroy/elm-imgix. It is published under that name, and new versions come out there.

Versions published as tricycle/elm-imgix still install under that name. 7 versions of 7 come from the new location (see their notes).

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/raen79/elm-imgix (a fork).

What we checked: Rebuilt with git archive from commit 885eb0477e17 of https://github.com/raen79/elm-imgix (a fork) (zip prefix tricycle-elm-imgix-18520d8/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 611e39720cd7d70bb89687d900bf28a70ea9b117.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-imgix/zipball/1.1.0/

elm-imgix

A wrapper around ImgIX image API for Elm

imgix logo

From imgix.com

Powerful image processing, simple API imgix transforms, optimizes, and intelligently caches your entire image library for fast websites and apps using simple and robust URL parameters.

Goal

The goal of this package is to supply a full comprehending API supporting all the available image configuration options made available by imgix.

ToDo

  • Adjustment
  • Automatic
  • Blending
  • Border & Padding
  • Color Palette
  • Face Detection
  • Fill
  • Focal Point Crop
  • Format
  • Mask Image
  • Noise Reduction
  • PDF
  • Pixel Density
  • Rotation
  • Size
  • Stylize
  • Text
  • Trim
  • Typesetting Endpoint
  • Watermark

Simple usage example

Adjust the brightness of an imgix image and apply a list of automatic enhancement

import ImgIX
import ImgIX.Adjustment as Adjustment
import ImgIX.Automatic as Automatic

type alias Model =
    { imageSrc : Url.Url
    }

view : { imageSrc : Url.Url } -> Html.Html msg
view { imageSrc } =
    ImgIX.fromUrl imageSrc
        |> ImgIX.adjust (Adjustment.brightness 50)
        |> ImgIX.automatics [ Automatic.enhance, Automatic.compress, Automatic.fileFormat ]
        |> ImgIX.toHtml