MCPcopy
hub / github.com/HashLips/hashlips_art_engine / saveImage

Function saveImage

utils/pixelate.js:61–66  ·  view source on GitHub ↗
(_loadedImageObject)

Source from the content-addressed store, hash-verified

59};
60
61const saveImage = (_loadedImageObject) => {
62 fs.writeFileSync(
63 `${buildDir}/${_loadedImageObject.imgObject.filename}`,
64 canvas.toBuffer("image/png")
65 );
66};
67
68const startCreating = async () => {
69 const images = getImages(inputDir);

Callers 1

startCreatingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected