Best way to send an image to a website

Hey There,

What I want to achieve is basically a way to send images to my website. I am wanting to do this for a ride photosystem, so a user is on the ride and ride makes an image using viewport frames and then sends that to a website. I don’t even know if it’s possible with Roblox limits but what would the best way be?

There would be some issues with this, such as how to generate an image file using LUA but I don’t know if it’s possible.

I was thinking a good way to make this is with PHP, what do you guys recommend doing this with/how I could do it? :slight_smile:

2 Likes

This is not possible. You could include steps to show the user how to upload images from the website, but you can’t do it in-game.

2 Likes

Alright, I was thinking maybe sending an array of users on the ride to the website, then making image on the site?

You could theoretically do this by grabbing the image of the entire body of the avatars, but then the characters would be standing on the ride. AFAIK there’s no way to take, from the Roblox website and to put on another, a picture of a user sitting.

1 Like

Alright, thanks for your information tho :slight_smile:

Roblox currently doesn’t give you the ability to read pixels as they are rendered on the client so the only way this would be possible is to take a snapshot of all moveable objects in the scene (i.e record the CFrames and meshIds from the characters) and use that data to recreate the scene on your server.
That is a lot more trouble than it’s worth especially since players can already take screenshots themselves if they want to.

4 Likes

Hm alright, I think if I was to do an array way as I said to Ty_Scripts that could work :slight_smile:

No this is possible, nothing is impossible. I’m not sure how’d you do this but I had to clear it up real quick!

1 Like

What? Some things are impossible. This is one of them. It’s a limitation of the software, it just simply can’t be done.

1 Like

Its well possible, and there is no limitations stopping sending an image to a website. Of course you can’t send the whole thing, the website will have to decode it and make the image from any data send from the game itself.

1 Like

There’s no limitations stopping an image being sent to a website, correct, but read the post:

It’s not possible to generate an image file with Lua not LUA, it’s a limitation of the engine.

I mean that you’d generate a image from any objects that are in the shot, also because the ride is most likely not unique every time you ride it you can skip tons of steps by just adding the user’s avatar to a picture.

It is possible. You could use raycasts to create your own rendering solution, and send pixel data via http, then do the reverse if you wish to send an image back. There’s a nice example of a renderer here: https://twitter.com/sircfennerRBX/status/1009921076913229824

1 Like

Ah that’s a really good way, thanks for letting me know :slight_smile:

You can turn the surrounding area into text like a basic part saving system, then you would have to use another program to turn that into an image.

It isn’t possible without using other software.