RbxThumbUtils
Wraps the rbxthumb URL api surface to generate a URL for a thumbnail on the cloud.
These thumbnails are automatically batched for performance.
Functions
getThumbnailUrl
RbxThumbUtils.getThumbnailUrl() → stringGets a thumbnail URL for a given content type and id
https://devforum.roblox.com/t/new-contentid-format-for-easy-thumbnail-loading/357335 https://create.roblox.com/docs/studio/asset-types#rbxthumb
Type: Supported Sizes: "Asset" 150x150, 420x420 "Avatar" 100x100, 352x352, 720x720 "AvatarHeadShot" 48x48, 60x60, 150x150 "BadgeIcon" 150x150 "BundleThumbnail" 150x150, 420x420 "GameIcon" 50x50, 150x150 "GamePass" 150x150 "GroupIcon" 150x150, 420x420 "Outfit" 150x150, 420x420
avatarItemTypeToThumbnailType
Converts an AvatarItemType to a string thumbnailType for thumbnail generation
getAssetThumbnailUrl
RbxThumbUtils.getAssetThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a Asset URL for use in an image label or other rendering application.
Supported sizes: 150x150, 420x420
getAvatarThumbnailUrl
RbxThumbUtils.getAvatarThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a Avatar URL for use in an image label or other rendering application.
Supported sizes: 100x100, 352x352, 720x720
getAvatarHeadShotThumbnailUrl
RbxThumbUtils.getAvatarHeadShotThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a AvatarHeadShot URL for use in an image label or other rendering application.
Supported sizes: 48x48, 60x60, 150x150
getBadgeIconThumbnailUrl
RbxThumbUtils.getBadgeIconThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a BadgeIcon URL for use in an image label or other rendering application.
Supported sizes: 150x150
getBundleThumbnailThumbnailUrl
RbxThumbUtils.getBundleThumbnailThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a BundleThumbnail URL for use in an image label or other rendering application.
Supported sizes: 150x150, 420x420
getGameIconThumbnailUrl
RbxThumbUtils.getGameIconThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a GameIcon URL for use in an image label or other rendering application.
Supported sizes: 50x50, 150x150
getGamePassThumbnailUrl
RbxThumbUtils.getGamePassThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a GamePass URL for use in an image label or other rendering application.
Supported sizes: 150x150
getGroupIconThumbnailUrl
RbxThumbUtils.getGroupIconThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a GroupIcon URL for use in an image label or other rendering application.
Supported sizes: 150x150, 420x420
getOutfitThumbnailUrl
RbxThumbUtils.getOutfitThumbnailUrl(targetId: number,width: number?,height: number?) → stringGets a Outfit URL for use in an image label or other rendering application.
Supported sizes: 150x150, 420x420