MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / decodeAlpha

Function decodeAlpha

packages/agent-core/test/tools/image-compress.test.ts:79–82  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

77}
78
79async function decodeAlpha(bytes: Uint8Array): Promise<boolean> {
80 const image = await Jimp.fromBuffer(Buffer.from(bytes));
81 return image.hasAlpha();
82}
83
84// ── fast path ────────────────────────────────────────────────────────
85

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected