Function scaleImage

  • Internal

    Scales an image buffer by some factor and returns the buffer and some additional information from Sharp.

    Parameters

    • buf: Buffer

      The image buffer to use.

    • scale: number

      The scale factor to use. 1 means 100% or no change.

    Returns Promise<{
        data: Buffer;
        info: OutputInfo;
    }>