(text: string)
| 183 | } |
| 184 | |
| 185 | function escapeDrawtext(text: string): string { |
| 186 | return text.replace(/\\/g, '\\\\').replace(/:/g, '\\:').replace(/'/g, "\\'").replace(/%/g, '\\%') |
| 187 | } |
| 188 | |
| 189 | async function withTempDir<T>(fn: (dir: string) => Promise<T>): Promise<T> { |
| 190 | ensureFfmpeg() |