Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/templarian/image-to-bmp

Convert image to 1 bit depth BMP
https://github.com/templarian/image-to-bmp

1-bit bmp iot monochrome node

Last synced: about 9 hours ago
JSON representation

Convert image to 1 bit depth BMP

Awesome Lists containing this project

README

        

# image-to-bmp

Convert image to 1 bit depth BMP. File formats `.jpg`, `.png`, `.bmp`, `.tiff`, and `.gif`. Thanks to the [Jimp](https://www.npmjs.com/package/jimp) library.

## Usage

```
npx image-to-bmp file.png
npx image-to-bmp file.png 1.2
npx image-to-bmp
```

Brightness can be 0 to 2.

**Note:** This assumes you have nodejs installed.

> Installing globally is also an option:
>
> ```
> npm install -g image-to-bmp
> ```

## Example

![original 0.6 and 1](https://user-images.githubusercontent.com/338885/180120169-f8070160-3ae0-4531-8e71-770107cd93da.png)

## Technical Details

Write bmp top to bottom for microcontrollers or low memory chips.

## Why?

Quick utility to make assets for monochrome displays.