MCPcopy
hub / github.com/lovell/sharp / isResizeExpected

Function isResizeExpected

lib/resize.mjs:116–118  ·  view source on GitHub ↗

* @private

(options)

Source from the content-addressed store, hash-verified

114 * @private
115 */
116function isResizeExpected (options) {
117 return options.width !== -1 || options.height !== -1;
118}
119
120/**
121 * Resize image to `width`, `height` or `width x height`.

Callers 2

resizeFunction · 0.85
extractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…