(defer)
| 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})`, { |
nothing calls this directly
no test coverage detected