Use lossless WebP (RGBA instead of YUV420)

This commit is contained in:
Nils Hanke 2023-03-21 18:23:07 +01:00
parent 26bddb6de7
commit 3316d4765b
3 changed files with 1 additions and 1 deletions

View file

@ -6,7 +6,7 @@ COPY frames /tmp/frames
RUN chown pptruser /tmp/frames
USER pptruser
RUN /bin/bash -c 'for file in /tmp/frames/*.svg; do svgexport $file $file.png 3x; done'
RUN ffmpeg -i /tmp/frames/termtosvg_00%03d.svg.png -r 25 /tmp/animated.webp
RUN ffmpeg -i /tmp/frames/termtosvg_00%03d.svg.png -lossless 1 -r 25 /tmp/animated.webp
FROM scratch AS export
COPY --from=generate /tmp/animated.webp .

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 KiB

After

Width:  |  Height:  |  Size: 631 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 KiB

After

Width:  |  Height:  |  Size: 631 KiB

Before After
Before After