MCPcopy
hub / github.com/tensorflow/tfjs / backendEncodeImage

Function backendEncodeImage

tfjs-node/src/image.ts:227–230  ·  view source on GitHub ↗
(imageData: Uint8Array)

Source from the content-addressed store, hash-verified

225 ensureTensorflowBackend();
226
227 const backendEncodeImage = (imageData: Uint8Array) =>
228 nodeBackend().encodeJpeg(
229 imageData, image.shape, format, quality, progressive, optimizeSize,
230 chromaDownsampling, densityUnit, xDensity, yDensity, xmpMetadata);
231
232 return encodeImage(image, backendEncodeImage);
233}

Callers 1

encodeImageFunction · 0.85

Calls 3

nodeBackendFunction · 0.90
encodeJpegMethod · 0.80
encodePngMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…