Hacker News new | ask | show | jobs
by Retr0id 1254 days ago
Exactly. It is easy to write a BMP reader, but if you want to read any BMP file that you might find in the wild then you're going to have a fun time.
1 comments

There's even some very niche extensions to BMP which allow it to be used as a container for PNG or JPEG data.

https://learn.microsoft.com/en-us/windows/win32/gdi/jpeg-and...