MonochromeOptions: {
    color?: string;
    intensity: number;
}

The monochrome options

Type declaration

  • Optionalcolor?: string

    A hex-coded value of the color that will be used as a base for the monochrome palette.

  • intensity: number

    A positive floating-point number between 0 and 1 that defines the intensity of the monochrome effect.

    When intensity is greater than zero, imgproxy will convert the resulting image to monochrome.