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
GLon?
Get out. Seriously, do it.
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?
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.
Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
Drunkie - Logically, Jat Goodwin must be a fist pumping guido.
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
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 :angry:
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.
Bookmarks