diff --git a/.gitignore b/.gitignore index 1d8ffcc..7fb7145 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ images/**/*.png -**/*.mp4 \ No newline at end of file +**/*.webm \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 06d70ab..d579f03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:18-alpine # Set TZ to Singapore to help with syncronizing with singapore's website time ENV TZ="Asia/Singapore" -RUN apk update && apk add --no-cache ffmpeg npm pango-dev g++ make jpeg-dev giflib-dev librsvg-dev +RUN apk update && apk add --no-cache ffmpeg npm pango-dev g++ make jpeg-dev giflib-dev librsvg-dev ttf-dejavu RUN mkdir -p /home/node/app/node_modules RUN mkdir -p /home/node/app/images/raw diff --git a/out/output.webm b/out/output.webm deleted file mode 100644 index 701f4ff..0000000 Binary files a/out/output.webm and /dev/null differ diff --git a/video.mjs b/video.mjs index 094e091..d9e8373 100644 --- a/video.mjs +++ b/video.mjs @@ -12,7 +12,7 @@ async function overlayImage(time_string) { ctx.drawImage(overlay, 0, 0, 853, 479) let text = time_string.substring(8, 10) + ':' + time_string.substring(10, 12); - ctx.font = 'bold 70px'; + ctx.font = 'bold 70px sans-serif'; ctx.fillStyle = 'rgba(0,0,0,0.7)'; ctx.fillText(text, 853 - 250, 479 - 40);