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 textureCompress() on web, with fallback to ndarray-pixels #1075

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

donmccurdy
Copy link
Owner

When the encoder option is omitted, textureCompress() will now fall back to ndarray-pixels and ndarray-lanczos. This change is intended to provide alternatives in a web browser, where Sharp (https://sharp.pixelplumbing.com/) is not currently supported.

I'll continue to keep an eye on lovell/sharp#3522, in the hope that it will be possible to install a web-friendly build a Sharp someday.

@donmccurdy donmccurdy added feature New enhancement or request package:functions labels Aug 30, 2023
@donmccurdy donmccurdy added this to the v3.6 milestone Aug 30, 2023
@donmccurdy donmccurdy merged commit cd78ffd into main Aug 30, 2023
6 checks passed
@donmccurdy donmccurdy deleted the feat/texturecompress-ndarray branch August 30, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New enhancement or request package:functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can textureResize become textureCompress on the web?
1 participant