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: how would i decompile a png or jpg

Previous Thread :: Next Thread 
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:12 PM
does anyone know how i could go about decompiling a png or jpg because i need to find the rgb of each pixel so i can make an http video player which basically works by giving a matrix of the pixels and their rgb which the screen will load before playing the animation but i need to find out how to decompile it first
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:13 PM
it would also be nice if i could learn how to decompile an mp4 so i could change the resolution of the pixels to be smaller and use a low framerate video to test
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:14 PM
if there is a way to do this in lua, c, c++, c#, or javascript then i might use it, if not then you can give me a couple of languages that can do this
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
08 Feb 2017 11:17 PM
You're going to need to use HTTP Service (duh)

Send info for the image to roboblocks

Look through info about it and find RGB values, where they are etc (have fun)

Make GUI objects w/ matching colors

Enjoy

And tbh I've never even attempted any of the above, just what I imagine it would be like.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:18 PM
no i know how to do the http
i asked how to DECOMPILE.
Report Abuse
Froast is not online. Froast
Joined: 12 Mar 2009
Total Posts: 3134
08 Feb 2017 11:19 PM
I have done this using the "jimp" module in node
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
08 Feb 2017 11:19 PM
Oh wait you're not talking about ROBLOX?

http://
stackoverflow
.
com/
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:21 PM
i am technically talking about roblox because i will convert them into a json table that i can store online and i will be able to read it on roblox and decode into a matrix of pixels (by making each row its own table)
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
08 Feb 2017 11:22 PM
imagecolorat with php
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
08 Feb 2017 11:23 PM
So you're essentially trying to convert an image to JSON if I understand you correctly
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:24 PM
can you show me an example of doing that, i am going to use my domain to add files when you submit a png or jpg with a form
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:25 PM
yes for example a very simple image would be [[[255,125,0],[120,200,1]], ###################### [[21,7,1],[220,600,40]]]
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Feb 2017 11:26 PM
It's called decoding (and in some cases mixed with decompressing).
A ton of libraries exist out there to make it easier. In Java they have BufferedImage which makes it really easy to get the RGB components.

Writing a decoder is more "trouble" then its worth (realistically it's just following specs., but why do it when someone else has already done it)
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:26 PM
yes for example a very simple image would be
[ [ [255, 125, 0], [120, 200, 1] ],
[ [25, 25, 25], [10, 0, 9] ],
[ [21, 7, 1], [220, 600, 40] ] ]
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
08 Feb 2017 11:27 PM
Use
Google
Chrome
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:29 PM
i know nothing about java, sorry, if someone experienced with it show me how to get pixels of an image with a resolution of 128 x 128
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:29 PM
could show me* that would be great, otherwise i will see what i can do with a few references and guides
Report Abuse
Froast is not online. Froast
Joined: 12 Mar 2009
Total Posts: 3134
08 Feb 2017 11:30 PM
If you have discord mine is Froast#5132 and I can give you some example code only because I already wrote it before. It sounds like you want someone to write this entire thing for you and that is too much.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:32 PM
no i can do the image displaying, loading, handling of domain, and http requests, I do not know anything whatsoever about the Java language so if you could imagine me having to learn how to use a different language just for the sake of 1 single project is quite terrifying
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Feb 2017 11:33 PM
It's really easy in Java, just a few lines of code.
puu.
sh/tUTcO/0f60489b90.png
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Feb 2017 11:34 PM
Well what language _are_ you using
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:34 PM
can i use new URL for image generation instead for e.g. like direct links (i only know this after looking at a few articles)
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:35 PM
im using lua to read the information and java looks like a good way to make the information readable
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
08 Feb 2017 11:38 PM
There are probably a lot of libraries in Lua that can do the image reading for you.
If last comes to last and you want to keep using Lua and can't find anything, the specs for pretty much all the file formats you could ever think of is online.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:39 PM
is there a way to make the java or lua file into an exe so i can run it, put the file in, and then make a text document in a folder for the image?
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