naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

Add support for 24-bit BMP images. #208

Closed awused closed 4 years ago

awused commented 4 years ago

This adds support for 24 bit RGB bitmaps without adding extra dependencies. I've tested it with RGBA and it seems to work just fine with the images being understood by the programs I tested, but there's an expanded header format for that and it'd be better to use a proper BMP library at that point to guarantee compatibility. I figure most people using BMP don't expect it to support transparency anyway.

For my desktop the improvement is from around 1.2 seconds with minimum quality PNGs to 360ms.

naelstrof commented 4 years ago

Nice! Thank you, looks great!