Image Parser API - Render external images to Roblox

About

A strict Luau module that renders pixel data onto an EditableImage using WritePixelsBuffer.

In simple terms, this allows you to display an image from a URL directly onto a Decal (Texture, or ImageLabel, etc.) in-game—no need to upload it manually. This system supports many use cases, such as integrating with a Google Docs Viewer to render images in Roblox experiences.

Examples

local ImageParser = require(script.ImageParser)

local url = "https://static.wikia.nocookie.net/patric/images/c/ca/200px-Patrick_Star_svg.png/revision/latest/scale-to-width-down/200?cb=20120115202441"

local EditableImage: EditableImage? = ImageParser:ParseImageToEditableImage(url, 512)

if not EditableImage then
	return warn("Failed to create EditableImage!")
end

script.Parent.Decal.TextureContent = Content.fromObject(EditableImage)

https://gyazo.com/0fd9b60a90ae0949ab01b93bd4def825

– Repository: GitHub - Metatable-Games/LuauImageParser: Strict Luau module for drawing API-based pixel data to EditableImage using WritePixelsBuffer.
– Cloudflare Worker Repository: GitHub - Metatable-Games/LuauImageParserCFWorker

5 Likes

This module looks interesting…
I’m not entirely sure what it does, does it renders images outside of roblox to roblox as ui elements on a gui? or does it render a decal from that outside image?

And whats the use of the cloudflare worker or even how the entire module even works and whats the flow of it entirely?

Would be great if this post is further elaborated!