How can we get textures in .glb format for a web version in 3js

Hi guys,
I have a 3D model in.gltf format with textures associated with it. However, I have to create in manually using a .obj file in Blender. I want to skip this step and trying to create an automated one. So I came across trimesh which helps me create a .glb file from the same .obj file. However, when I load this .glb file on 3js, I am not able to view it with the textures associated and it turns out complete black.

You can load OBJ files and their MTL in your threejs app … then export it with GLTFExporter, all in THREEJS. You don’t need any other tools.