IconImageAssetId doesn't provide a working image with some gamepasses

local checkGamepassValid, gamepassInfo = pcall(MarketplaceService.GetProductInfo, MarketplaceService, gamepassID, Enum.InfoType.GamePass)

if checkGamepassValid then
local gamepassIcon = "rbxassetid://" .. gamepassInfo.IconImageAssetId

ImageLabel.Image = gamepassIcon
end

This code works on almost every gamepass except for a few, it does return an ID but the image is simply blank. I have no idea what’s causing it.

Here’s the gamepass I’m trying to load in

I tried preloading async
I tried to copy the ID it gives and put it manually, but still nothing.
I tried checking if the AssetTypeId is an Image and it is

Maybe try a different approach to getting the AssetId? Maybe try manually putting the image id in an image to see if it’s the code or the image itself.

2 Likes

I already tried those things. I can’t think of any other different approach.

I also used this link and it still didn’t show up
https://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=420&assetId=[assetid]

2 Likes

Have you tried doing it manually to check if the image is valid or not?

2 Likes

Yes I already did that. I have no clue what the problem is

2 Likes

It means that the issue is with the image itself and not the code. Maybe try reuploading the image?

2 Likes