So I’m using endpoints ingame to allow users to set their own images for things etc. What players can do with that is put it on a billboard. What I’m trying to do is use the endpoint below to get the image url from the endpoint so I can attach it as a link to a trello card.
The endpoint I am using is: https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=(ID) but I need it in image form like https://tr.rbxcdn.com/id/420/420/decalname/Png. Is there a way to do this?
If this isn’t possible, then I guess I’d have to try pulling the data from the assets site on the library and trying to get the image URL from there, but that isn’t particularly viable.
I think y’all have misunderstood what I’m trying to say. I need to turn a roblox asset link into a png link that can be used on websites, not the other way round.
I had to do it externally in the end. If anyone is looking to do this, this is how I did it below. I used the request module on Node.JS and used a get request to return the site code. I then decompiled the response table which gave me 2 parameters which I could use to construct the link. Thanks for your help!
EDIT 12/3/24
Following on from a DM from a user on here asking about this solution, I’ve attached a more up-to-date method below.
You can get the png asset from a decal ID by using this endpoint. https://thumbnails.roblox.com/v1/assets.
An example: https://thumbnails.roblox.com/v1/assets?assetIds=(assetid)&size=512x512&format=Png
This will return a block of information like this of which imageUrl can be used as the raw image link: