MCPcopy
hub / github.com/ollm/OpenComic / loadSharp

Function loadSharp

scripts/image.js:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const useChildFork = (process.platform === 'linux' && !inChildFork) ? true : false;
5
6async function loadSharp()
7{
8 if(sharp !== false) return;
9 sharp = require('sharp');
10}
11
12async function resize(fromImage, toImage, config = {})
13{

Callers 6

resizeFunction · 0.85
_resizeFunction · 0.85
resizeToBlobFunction · 0.85
rawToPngFunction · 0.85
rawToBufferFunction · 0.85
getSizesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected