Load texture on mesh

I have a 3D JLTF model and I want to place a photo in JPG format on one of its meshes so that the photo can be enlarged and reduced and can be moved and rotated.
I used texture loader, but it brings the photo to the size of the whole mesh and it seems to attach the edges of the photo to the edge of the model, and if the scale is changed, only the center of the photo changes.

How texture displays on a model or its parts depends entirely on the UV mapping on the model. You can configure UV mapping in software like Blender (I’d advise against trying to do it via code, coding coordinates becomes unmanageable as soon as you need to do even small adjustments to the model.)