Skip to content

Conversation

@mrxz
Copy link
Collaborator

@mrxz mrxz commented Jul 3, 2025

For SOGS support (#73) a dependency was introduced to decode the webp images to access the raw RGBA pixel data. This PR replaces the dependency with using a WebGL context to read back the pixel data. This has the benefit of utilizing the browser's built-in image decoding.

There is the possible downside that browser implementation differences could lead to different result or that WebGL limitations on the device (e.g. max texture size) could limit which files can be decoded.

@dmarcos
Copy link
Contributor

dmarcos commented Jul 3, 2025

Thanks. It looks good to me

@dmarcos
Copy link
Contributor

dmarcos commented Jul 4, 2025

Always happy to see a dependency gone. Merging this. It looks just a clean replacement of the decoding logic

@dmarcos dmarcos merged commit ef24ed0 into sparkjsdev:main Jul 4, 2025
2 checks passed
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