MCPcopy
hub / github.com/nodeca/pica / fn

Function fn

benchmark/benchmark.js:36–39  ·  view source on GitHub ↗
(defer)

Source from the content-addressed store, hash-verified

34 .add(`[js] resize (${SRC_WIDTH}x${SRC_HEIGHT} => ${DST_WIDTH}x${DST_HEIGHT})`, {
35 defer: true,
36 fn (defer) {
37 pica_js.resizeBuffer({ src: sample, ...RESIZE_DEFAULTS })
38 .then(() => defer.resolve())
39 }
40 })
41
42 .add(`[js] resize & premultiply (${SRC_WIDTH}x${SRC_HEIGHT} => ${DST_WIDTH}x${DST_HEIGHT})`, {

Callers

nothing calls this directly

Calls 1

resizeBufferMethod · 0.80

Tested by

no test coverage detected