How to compress the texture, for the app, 2k resolution is a bit wasteful, I only want 256 or 512
Or try this one:
I’ve always used a program called XnConvert. It allows you to select a whole bunch of images or directories even with different image types. Then you apply “tasks” to them, for example “resize”. After that you configure the desired output (eg. All to a new file type, Overwrite source files, use naming conventions, etc.)
Best of all, it’s completely free.
Or if your textures are in a GLB —
npm install --global @gltf-transform/cli gltf-transform resize input.glb output.glb --width 512 --height 512
The width/height given are maximum dimensions, smaller textures will not be scaled up.
Thank you again!!!. I know gltf-transform, and I used it to compress my model into opt, but my textures are not in the glb model. By the way, the transfer of opt is faster than that the decod