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

Change File Format #588

Open
cooper667 opened this issue Mar 8, 2022 · 0 comments
Open

Change File Format #588

cooper667 opened this issue Mar 8, 2022 · 0 comments
Assignees
Labels
enhancement [Improvement] Enhancement request.

Comments

@cooper667
Copy link
Contributor

We currently use CreateImageBitmap a lot and convert ImageData objects, but just end up storing Base64 Pngs (as the imagedata object isn't serializable). We can likely do something a lot smarter and remove the majority of the conversions (they are probably a lot more 'expensive' than any saving we get from directly rendering an ImageData obj)

It might be worth looking at how Percy serializes canvas data, although they are likely less concerned about speed and size. Must be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [Improvement] Enhancement request.
Projects
None yet
Development

No branches or pull requests

3 participants