Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lxmcf199505yAlso can anyone recommend any colour format other than #RRGGBBAA that would suit minimal size?
-
Minimum size is with one bit per pixel in black and white. Even smaller is one bit for four pixels as average. Or one bit for the whole averaged picture.
Or even zero bits if you just throw it away. -
lxmcf199505y@Fast-Nop well I was just going to do a list of each colour and assign each pixel 1 byte but this throw it away idea sounds pretty efficient
-
@lxmcf It's also more secure. The mafia has always said, the less you know the better for you.
-
lxmcf199505y@Fast-Nop it's so encrypted that literally nothing can interpret it... I'm going to patent this and sell it
-
lxmcf199505y@kescherRant it's legit just raw data with every pixel taking 4 bytes [blue, red, green, alpha]
Going to compress that to a colour lookup table with each pixel giving 1 byte that points to a colour in the table -
lxmcf199505y@Fast-Nop It's also designed to be able to store multiple images in one file by combining the colour tables... Novel idea but hey
Custom image format update:
Currently converts a 12KB PNG image into 172KB BIN file, now to compress the fuck out of it!
Update: Fuck should I use a buffer or simple binary data for file structure manipulation....
random