From 75f8ee4175af8a5e1fa5d29c3c0e7ffaecab1d8e Mon Sep 17 00:00:00 2001 From: Andrew Dent Date: Mon, 17 May 2021 16:24:08 +0100 Subject: [PATCH] Minimise bitmap mini/bmp.bmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Smashed the 334 bytes original down to a slim 60 bytes, by hand crafting a v1.x BMP file. All versions of the BMP format begin with a basic 14 byte file header. Next is the secondary DIB header; 12 bytes is the smallest possible (IBM OS/2 – v1.x BMP files). Avoiding the more ‘advanced’ / modern bitmap file formats has a big impact for small files, while still widely supported and well documented. Sources: http://www.fileformat.info/format/os2bmp/egff.htm http://www.fileformat.info/format/bmp/egff.htm http://en.wikipedia.org/wiki/BMP_file_format https://msdn.microsoft.com/en-us/library/dd183372(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/dd183374(v=vs.85).aspx --- mini/bmp.bmp | Bin 334 -> 60 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/mini/bmp.bmp b/mini/bmp.bmp index 3118f7fe84fe01f53bf217f9ca75b9c15ede4f4c..e5273a0e8a7e57767eb59dcfed3c70e49cfb4484 100644 GIT binary patch literal 60 xcmZ?rwPAn&1t7%(#Jmjb42(ed|Nno81VgF=14AefrzbElga7#>^Fc6>2?0MC7#;u>$wRqL?m@*cDPn0R vG==|h0tSZv|3QjD3LtC7>F=V|EHcTJPP6Qv9Lm3zV#$16(