How to compress the texture, for the app, 2k resolution is a bit wasteful, I only want 256 or 512

How to compress the texture, for the app, 2k resolution is a bit wasteful, I only want 256 or 512

  1. Photoshop → Scale → Automatic filtering; or just imagemagick in the command line, if you want to batch-rescale.
  2. Consider investing in https://www.jpegmini.com/ - or, alternatively, use webp - either option will likely decrease the image size quite drastically.
1 Like

Or try this one:

2 Likes

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.

1 Like

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.

2 Likes

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

1 Like