GLon?
Ok, so I made this C# program that makes text files of pixel data used to load images into the digital screen using E2 file functions. My problem is that I cant get all the pixel data of a picture more than 96x96 resolution without exceeding the file upload limit which is 100kb.
The code it produces from the program outputs the colors of every pixel to the text file like this:
This is just basic R,G,B format. Now what I am hoping to get from someone is a more efficient way, or a compression algorithm I can use to pack all this pixel data from pictures up to 256x256 without exceeding 100kb. Any ideas?Code:130,104,45 130,104,35 129,104,49 127,104,49 128,104,42 131,101,47 130,102,52 127,104,50
Tutorials: Wire GPU | 3D Projections
Black Phoenix: drun KIE
Black Phoenix: PLEASE CONFIRM THIS MESSAGE DRUN KIE
Drunkie: confirmed
Black Phoenix: THE INTERGALACTIC CONTINIUM WANTS DRUN KIE TO GO ON A SPECIAL MISSION
Black Phoenix: this will be AN EASY mission TO THE UNKNOWN AND beyonD<HP> ... I can't believe I'm talking to a fucking script at 4 am
GLon?
Hurr
Someone suggested to me earlier, converting all the bytes to char's in the C# program, then in E2 using toByte(Char) to remake them. Would that reduce filesize considerably?
Tutorials: Wire GPU | 3D Projections
Black Phoenix: drun KIE
Black Phoenix: PLEASE CONFIRM THIS MESSAGE DRUN KIE
Drunkie: confirmed
Black Phoenix: THE INTERGALACTIC CONTINIUM WANTS DRUN KIE TO GO ON A SPECIAL MISSION
Black Phoenix: this will be AN EASY mission TO THE UNKNOWN AND beyonD<HP> ... I can't believe I'm talking to a fucking script at 4 am


base 36 is e2 compatible
Glon would use even more characters. If you don't mind the color quality deficit I would suggest dividing each 3 digit value and making them so each color can fit into a double digit number, and maybe get rid of the commas.
Filipe - you never know what ends up in your love hole
Poonage - It's not a disorder, it can be solved
Drunkie - vista was on the trail of complete beauty and perfection
Omicron - cable management is for losers, and people who know what they're doing
Drunkie - me and solece have tickets to go see justin bieber, i'm looking forward to it
JatGoodwin - I don't normally suck dick, but when I do they call me immibis
Drunkie - THERE IS SIMPLY NOT ENOUGH DICKS
JatGoodwin - stand back, im going to do science
Save as hex, separate by \n?
Should almost double the amount of pixels.Code:FF04A2 F3F2FF
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Wire FPGA
Tutorials: Wire GPU | 3D Projections
Black Phoenix: drun KIE
Black Phoenix: PLEASE CONFIRM THIS MESSAGE DRUN KIE
Drunkie: confirmed
Black Phoenix: THE INTERGALACTIC CONTINIUM WANTS DRUN KIE TO GO ON A SPECIAL MISSION
Black Phoenix: this will be AN EASY mission TO THE UNKNOWN AND beyonD<HP> ... I can't believe I'm talking to a fucking script at 4 am
I was just about to say that.
I think its the best methode to compress your pixel data.
But i think a "," would be the best to seperate it.
seriously getting serious
Use pallete and reduce colors (probably in external editor, like photoshop)
I changed it to use hex, and it outputs like this.
Which indicates it worked properly, but the image resolution was set to 128x128 and its a 144kb file wtf.Code:DD9A05 D69300 D89500 D89500 D59200 D69000
It didn't compress much
I'll have to try that next, but my main goal was to make it work universally with any jpeg or bitmap, you just import the pic, select your resolution size, and it makes a compatible E2 file.
Tutorials: Wire GPU | 3D Projections
Black Phoenix: drun KIE
Black Phoenix: PLEASE CONFIRM THIS MESSAGE DRUN KIE
Drunkie: confirmed
Black Phoenix: THE INTERGALACTIC CONTINIUM WANTS DRUN KIE TO GO ON A SPECIAL MISSION
Black Phoenix: this will be AN EASY mission TO THE UNKNOWN AND beyonD<HP> ... I can't believe I'm talking to a fucking script at 4 am
Bookmarks