Use model2image to display thumbnails of 3D models on a web page without requiring plugins or external programs.
npm install model2image
import { model2image } from 'model2image';
async function modelToImage() {
const imageUrl = await model2image(modelUrl);
console.log(imageUrl);
}