Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readModelThumbnail

readModelThumbnail(url, thumbnailOptions?): Promise<string>

A PNG data URL of the model or avatar file on a transparent background, the whole model from the front and a little above or its face straight on, rendered once per url, size and framing and kept for the page’s life. Rejects where the file fails to load or the page has no WebGL, and forgets the failure so a later call tries again.

Parameter Type
url string
thumbnailOptions ThumbnailOptions

Promise<string>