Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 05 Sep 2016 09:05 PM |
Does anyone know of an online api of sorts that will give you a list of pixels in an image from a URL you enter?
Just curious. c;
|
|
|
| Report Abuse |
|
|
|
| 05 Sep 2016 09:06 PM |
I made one of those
to get past roblox image moderation
you can code it in Python or something
idk though |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2016 10:40 PM |
HttpService and write a decoder for whatever the type of image you want to fetch is. Although, it's probably against the rules so beware. |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 05 Sep 2016 11:00 PM |
i made one written in php i can send after im out of school if you want it |
|
|
| Report Abuse |
|
|
Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 06 Sep 2016 10:45 AM |
Yeah that would be awesome. Im trying to create a browser inside roblox. If I do manage to create one, Im going to ask an admin or something before releasing it to the public. |
|
|
| Report Abuse |
|
|
Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 06 Sep 2016 10:47 AM |
| Heck maby Ill even make a whole OS. |
|
|
| Report Abuse |
|
|
Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 06 Sep 2016 10:51 AM |
Hey if only the user of the browser can see the browsers contents, wouldn't it be ok? Maby if I add a little warning at the start of the browser...
I mean, if the user of the browser can get on roblox cant he get on everything else anyway?
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 10:53 AM |
| Yes but if you do it in Roblox, it might be Roblox's responsibility because you'd be fetching the site from Roblox's servers and not your own browser. |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 06 Sep 2016 10:58 AM |
you need to host it on a webserver obviously
pastebin. com/hWP7MJ8s
it returns a json of the pixels which when decoded looks something like { [1] = { x = 1, y = 1, rgb = { 1, -- red 1, -- blue 1 -- green } }, }
http:GetAsync(url.."?url=theimageurl&width=100&height=100&method=imageformat")
imageformat should be jpeg or png, idk how gif works, I just added it for testing I have no clue why I have named the parameter 'method', don't ask
it will probably make the "web browser" laggy when you need to generate the image pixel by pixel, but you can experiment of course
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 10:58 AM |
| ^OP^ I have to doubt your ######### in this one. I doubt 'fetching images from online' would progress your making of a 'whole OS' in ROBLOX. I'm guessing this is either: 1. Yet another foolish attempt to ###### ####### images into games. 2. ^ 3. The same as 1 and 2 |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 10:59 AM |
wow, php makes it so easy /cry i wasted so much time |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 11:04 AM |
"I have no clue why I have named the parameter 'method', don't ask" ^ Maybe that's because you didn't actually write the code. |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 11:05 AM |
| What makes you think he didn't write the code? It's incredibly simple and short... |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 06 Sep 2016 11:06 AM |
I doubt anyone else would do the same thing. I did write the code, except for the part (probably the most important) I forgot to add the source which gets the pixel's color correctly. |
|
|
| Report Abuse |
|
|
Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 06 Sep 2016 11:15 AM |
Kofphtastrophe half of your words are hashtaged out. You know nothing about me, or anyone else. If you have nothing good to say just dont say it. Its not hard. Everyone just ignore this guy. |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 11:16 AM |
| #################################################################################################################################################################################################################################################################################### |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 11:19 AM |
@Ozzy It's from the example for imagecolorat. Also, that code won't work for .gifs |
|
|
| Report Abuse |
|
|
Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 06 Sep 2016 11:21 AM |
@Ozzy Thanks. This is a big help ;) |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 06 Sep 2016 11:23 AM |
oh yup there it is, I thought I got it from a stackoverflow post also I doubt OP really needs gifs
I wrote the code ~6 months ago, nowadays I got my pi so I'm a bit more experienced with PHP than back then.
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 11:26 AM |
OzzyFin ^
You do realize your transparency?
Give me one thing you'd need to bypass ROBLOX's image moderation than to bring inappropriate images into games.
Also, know that ROBLOX doesn't approve of 3rd party scripts. Oh, but what are you doing? PHP? That's not lua... But... But... ROBLOX only uses Lua.
Well will you look at that. |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 11:31 AM |
"Give me one thing you'd need to bypass ROBLOX's image moderation than to bring inappropriate images into games. " Well sometimes good decals get rejected, and they also take a very long time to be accepted. Had to wait over one hour for all of my decals except one, and one of them took three hours! Also, it can be used for inappropriate images :]
He's just using PHP to get the image data which will then be parsed by rocrap.lua I do the same thing |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 06 Sep 2016 11:31 AM |
I'm not expecting OP to use this in a front page game, just for a fun project. It's also slow and they require tons of frames/parts to generate the image.
You understand that there is the HttpService and what a web server is? |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2016 12:52 PM |
I'd just beware the possible consequences. If you want to be safe, filter everything you fetch text-wise with the Chat service.
As for images... Best I can think of is have your server do a reverse image search and then see if any bad text comes up... May not be feasible for your purposes though.
Just saying. These are Roblox's servers, as stated above. Something freak could happen with one of your visitors. Afterall, you do want a fully functional browser. Time to add parental controls? :D |
|
|
| Report Abuse |
|
|
Dr_Doge
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 645 |
|
|
| 07 Sep 2016 10:34 AM |
Yeah. And btw, for the record, the main reason I want this is because I cant have somthing upload all the pictures on the internet to roblox. If I could, that would be great. I could just use that, but no. If I want to create a functional web browser, I need pictures. Uploading a picture and having it approved takes at least an hour. Thats why I need to skip that step. Maby I could have a thing that searches every text/word on the browser and checks in a library of bad words to see if there are any bad words on the screen, and if there are, it could take them to the previous page and show a pop-up that tells them something inappropriate has shown up, thus the web browser has refused to load the page.
This is all just an idea. I guess Ill need to get in contact with a admin before I release this to the public.
Also, some inappropriate images have already leaked through Roblox's security and managed to have been uploaded without a problem. Just something to keep in mind.
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 07 Sep 2016 10:42 AM |
Web browsers on roblox are lame. Get a new idea.
|
|
|
| Report Abuse |
|
|