generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Get pixels of image via http request

Previous Thread :: Next Thread 
Dr_Doge is not online. 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
PerilousDanger is not online. PerilousDanger
Joined: 21 Aug 2012
Total Posts: 3773
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
cntkillme721 is not online. cntkillme721
Joined: 17 Sep 2009
Total Posts: 351
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
cntkillme721 is not online. cntkillme721
Joined: 17 Sep 2009
Total Posts: 351
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 is not online. 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
Kofphtastrophe is not online. Kofphtastrophe
Joined: 28 Oct 2015
Total Posts: 154
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
cntkillme721 is not online. cntkillme721
Joined: 17 Sep 2009
Total Posts: 351
06 Sep 2016 10:59 AM
wow, php makes it so easy /cry
i wasted so much time
Report Abuse
Kofphtastrophe is not online. Kofphtastrophe
Joined: 28 Oct 2015
Total Posts: 154
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
cntkillme721 is not online. cntkillme721
Joined: 17 Sep 2009
Total Posts: 351
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 is not online. 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 is not online. 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
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
06 Sep 2016 11:16 AM
####################################################################################################################################################################################################################################################################################
Report Abuse
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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 is not online. 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 is not online. 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
Kofphtastrophe is not online. Kofphtastrophe
Joined: 28 Oct 2015
Total Posts: 154
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
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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 is not online. 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
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image