Skip to content

Feat/webp dataurl provider#27

Merged
czl9707 merged 23 commits intomainfrom
feat/webp-dataurl-provider
Feb 12, 2026
Merged

Feat/webp dataurl provider#27
czl9707 merged 23 commits intomainfrom
feat/webp-dataurl-provider

Conversation

@czl9707
Copy link
Owner

@czl9707 czl9707 commented Feb 12, 2026

No description provided.

Implement WebpDataUrlOutputProvider that encodes frames as WebP data URLs
and writes them to text files. Supports injection mode (replacing lines
containing <!-- space-shooter --> marker) and append mode as fallback.

Uses same WebP encoding settings as WebPOutputProvider (lossless,
quality=100, method=4).
Move import os to top of module (PEP 8 compliance) and fix TOCTOU race condition in file creation by using exclusive open mode "x" with try/except instead of exists check followed by open.
@czl9707 czl9707 marked this pull request as ready for review February 12, 2026 02:56
@czl9707 czl9707 merged commit 6ce19cf into main Feb 12, 2026
1 check passed
@czl9707 czl9707 deleted the feat/webp-dataurl-provider branch February 16, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant