MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / extractStillImageMetadata

Function extractStillImageMetadata

packages/engine/src/utils/ffprobe.ts:213–221  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

211}
212
213function extractStillImageMetadata(filePath: string): StillImageMetadata | null {
214 if (extname(filePath).toLowerCase() !== ".png") return null;
215
216 try {
217 return extractPngMetadataFromBuffer(readFileSync(filePath));
218 } catch {
219 return null;
220 }
221}
222
223/**
224 * Read an ffprobe tag case-insensitively. ffmpeg/libavformat versions disagree

Callers 1

extractMediaMetadataFunction · 0.85

Calls 1

Tested by

no test coverage detected