Image.Plug.Pipeline.Ops.Pixelate (image_plug v0.1.0)

Copy Markdown View Source

Block-style pixelation. :scale is the resize factor passed to Image.pixelate/2 — smaller values produce coarser blocks (e.g. 0.05 = ~20-pixel blocks on a 400-pixel image). Maps to Cloudinary's e_pixelate[:N] where N is a block size in pixels (the provider parser converts N → scale = 1 / N).

Summary

Types

t()

@type t() :: %Image.Plug.Pipeline.Ops.Pixelate{scale: float()}