kind-as - v0.1.1
    Preparing search index...

    Function thumbnailExact

    • Scale this image down to a specific size. Returns a new image. Does not preserve aspect ratio. nwidth and nheight are the new image's dimensions. This method uses a fast integer algorithm where each source pixel contributes to exactly one target pixel. May give aliasing artifacts if new size is close to old size.

      Parameters

      • im: Image
      • nwidth: number
      • nheight: number

      Returns Image