As a Roblox developer the recently used method of subtracting 1 from the Image ID to get the Decal ID no longer works and not makes it harder than ever for users to insert their images into roblox. I used to use Classy-Studio’s API but that recently stopped working and I was put at a dead end of not being able to get the Image ID anymore.
Roblox natively supports the conversion of a DecalId to an ImageId via rbxthumb ContentId, but since this project is open source I figure it still has value to provide as a resource.
How does it work?
It sends a request to roblox’s http://www.roblox.com/asset/?id= API which returns XML data of the asset, from there I take the decal ID from the parsed XML and use that to return the Decal ID
How do I use it?
You can use the module I created or you can send your own API requests to our server!
Don’t you mean Decal ID to Image ID? Decal ID is the ID that is present when going to the Decals section in the library, and is normally the ID that players will insert, whereas the image ID is the actual ID the game needs to load the image. The post, as well as the website appears to have it backwards in most places, and in others it is correct.
Cool API though, will definitely use this if I find it fit.
Due to the fact that the stats on this glitch instance are sooooo low I’ve up’d the ratelimit to 150 requests per 65 seconds.
Notes
If you worry about your rate limit you’re able to host your own glitch instance of this for any one of your projects so you don’t need to rely on this. Here’s a short video on how to remix a project. https://www.youtube.com/watch?v=sedZVNakpto
According to some people (I haven’t tested this out myself so I have no idea how to use it) you can use contentId to get the DecalID (which is stated in the OP)
Conclusion
If you see any bugs please report them here or in my DM’s