Skip to content

Add texture resizing transform - #17

Open
alexchuber wants to merge 14 commits into
mainfrom
transform-blocks
Open

alexchuber wants to merge 14 commits into
mainfrom
transform-blocks

Conversation

@alexchuber

Copy link
Copy Markdown
Contributor

Summary

  • Add ResizeTexturesBlock for PNG, JPEG, WebP, and supported KTX2 textures.
  • Add reusable raster and KTX2 codec resources for Node and browser execution.
  • Preserve KTX2 encoding settings through pixel edits and keep encoder and decoder dependencies independently loadable.
  • Package the required codec assets for browser and Node consumers.

Testing

  • pnpm lint
  • pnpm build
  • pnpm test (135 tests)

alexchuber and others added 14 commits September 15, 2026 18:07
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Trim KTX2 buffers and retry failed decoder asset loads. Preserve JPEG orientation and yield during large resizes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

1 participant