Skip to content

Conversation

alexchuber
Copy link
Contributor

@alexchuber alexchuber commented Oct 15, 2025

NativeEncoding provides native image encoding capabilities to JavaScript, allowing raw pixel data to be encoded into standard image formats (PNG, JPEG, WebP, etc.). It serves Babylon.js's needs for texture export, for e.g. in glTF asset workflows.
See the README for more info.

Adding this to just the win32 playground app for now.

@alexchuber alexchuber marked this pull request as ready for review October 16, 2025 02:11
@alexchuber alexchuber marked this pull request as draft October 16, 2025 03:17
@CedricGuillemet
Copy link
Contributor

TestUtils plugin has a basic png writer (

void TestUtils::WritePNG(const Napi::CallbackInfo& info)

) that should be replaced by this PR change. It's being used by https://github.com/BabylonJS/BabylonNative/blob/master/Apps/Playground/Scripts/validation_native.js

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.

4 participants