Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support images other than PNG #27

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

akorobko
Copy link
Contributor

Elgato supports various image types besides PNG. It might be base64-encoded binary content for any MIME type (BMP and JPEG included). Or even, XML for SVG.

See documentation for the details.

This pull requests removes assumption that every payload should be prefixed with data:image/png;base64,. It keeps appending that string if no MIME type is given (for possible backward compatibility), but also relaxes prefix requirement to be just data:image/ in which case it leaves string as is.

@fredemmott fredemmott merged commit df10126 into fredemmott:master Dec 28, 2023
8 checks passed
@akorobko akorobko deleted the support_non_png branch December 29, 2023 07:34
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.

2 participants