Constructors

Properties

modifiers: Map<keyof ParamBuilder, string>

The currently applied imgproxy modifiers

Methods

  • Builds the imgproxy URL

    If a path is supplied, the full URL path will be returned, else only the stringified modifiers will be returned.

    If a base URL is supplied, the full imgproxy URL will be returned.

    Parameters

    Returns string

    The imgproxy URL

  • Allows redefining GIF saving options.

    Parameters

    Returns this

    Automatically applied since version 3.0.0

    pb().gifOptions({
    optimizeFrames: true, // optional
    optimizeTransparency: 50 // optional
    });
  • Removes the specified modifier from the currently applied modifiers

    Parameters

    • this: this
    • modifier: Omit<keyof ParamBuilder,
          | "modifiers"
          | "clone"
          | "unset"
          | "build">

      The modifier

    Returns this