Jpeg Decoder Module (Open Source)

I created a Jpeg decoder in Lua. It takes the binary data of a Jpeg image, decompresses it into the original RGB values, and then returns them.

Showcase video:

JpegDecoder.rbxm (12.2 KB)

The image data is received through a HTTP request to the direct link associated with an online image. The image is then displayed by using parts as pixels.

13 Likes

this is very cool! but I do feel it would likely be used to show bypassed images and such :frowning:

5 Likes

Of course it would. But no one cares about that.

1 Like

My god this is some insane stuff!! I wouldn’t even know how to format a png!!

Great stuff!! Really, it’s great.

1 Like

Add support for editable images, and its also wayy faster.

2 Likes

Displaying the image is not part of the module. You may use editable images to display it yourself if you want.

Are you doing the decompression on the client or the server you’re connecting to? If your server just returns the decompressed RGB data, then this is really slow.

Can you give an example script of how to use and interact with the module?

I don’t really connect to a server, just send a http request for the compressed data. All the decompression is done on the client by the module.

This works for any direct link to a jpeg you can find online

The read me should contain most of what you need to know. I briefly show the code I used to display the image in my video.

1 Like

Is it plain data, or is there any additional compression applied?

The module returns plain data, the useful return values are shown in the read me.