MCPcopy Create free account
hub / github.com/GetStream/stream-js / thumbnail

Method thumbnail

src/images.ts:81–88  ·  view source on GitHub ↗

* Generate a thumbnail for a given image * @link https://getstream.io/activity-feeds/docs/node/files_introduction/?language=js#image_processing * @param {string} uri * @param {number|string} w * @param {number|string} h * @param {Object} [options]

(
    uri: string,
    w: number | string,
    h: number | string,
    { crop, resize } = { crop: 'center', resize: 'clip' },
  )

Source from the content-addressed store, hash-verified

79 * @param {Object} [options]
80 */
81 thumbnail(
82 uri: string,
83 w: number | string,
84 h: number | string,
85 { crop, resize } = { crop: 'center', resize: 'clip' },
86 ) {
87 return this.process(uri, { w, h, crop, resize });
88 }
89}

Callers 2

images.jsFile · 0.80
images_test.jsFile · 0.80

Calls 1

processMethod · 0.95

Tested by

no test coverage detected