(This suite of tools is heavily deprecated by advances in the Roblox API, mainly EditableImages. There will be a rewritten version that generates a single data string version that can be loaded as a buffer into editableimages.)
This project relies on a modified version https://github.com/boatbomber/ViewportCanvas for in-game rendering.
- Extract
image_encoder.rar - Drag your image into the
inputfolder. (Must be .png) (Delete the sample image, it will only process the first image in the folder) - Run
png_to_rbxmx.exe. - Import
Modules.rbxminto Roblox Studio and ungroup it in ReplicatedStorage. - Drag the generated
.rbxmxfile in the output folder into your game and parent it toReplicatedStorage.Images.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ImageLoader = require(ReplicatedStorage.ImageLoader)
local TargetImage = ReplicatedStorage.Images.["Image ModuleScript name here"]
local SurfaceGui = game.Players.LocalPlayer.PlayerGui.SurfaceGui
-- Guis have to be descendants of a PlayerGui to load properly.
-- This module should be used on the client.
ImageLoader:LoadImage(TargetImage, SurfaceGui)