(filePath: string)
| 211 | } |
| 212 | |
| 213 | function 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 |
no test coverage detected