MCPcopy
hub / github.com/wonday/react-native-pdf / pngFromBase64

Function pngFromBase64

example/__windows_tests__/TestPDF.js:17–20  ·  view source on GitHub ↗
(base64)

Source from the content-addressed store, hash-verified

15});
16
17function pngFromBase64(base64) {
18 const pngBuffer = Buffer.from(base64, 'base64');
19 return PNG.sync.read(pngBuffer);
20};
21
22const pixelThreshold = 10; // Allow 10 pixel difference, to account for anti-aliasing differences.
23

Callers 1

TestPDF.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected