Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
import { readFileSync } from "node:fs";
export function pngDimensions(path: string): { width?: number; height?: number } {
try {
const png = readFileSync(path);
if (png.length < 24) return {};
return { width: png.readUInt32BE(16), height: png.readUInt32BE(20) };
} catch {
return {};
}
}