Hi all. So I have been digging around the internet for ages to find a way to read image data and then have a load the load the image into a colour array.
I have looked at @Maximum_ADHD’s PNG library, and it seemed promising, but I just couldn’t get it to work. I have no idea how to use it, and I cannot for the life of me find an example or proper documentation on how to use it anywhere.
So here I am. This is my last attempt to find a way how to read pixel data from an image via Roblox Studio (I don’t plan to load images into actual roblox games as this is for a plugin)
Oh wow it does work! Can you please explain what you did to get the module to work? Cause I actually provided BinaryContents to the module, but it kept throwing errors at me.
Well, the only reason I can think of is that you didn’t have all the required files. I used RepoToRoblox to get the files directly into Studio, and then just passed File:GetBinaryContents() into PNG.new.