Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/templarian/image-to-bmp
- Owner: Templarian
- License: mit
- Created: 2022-07-20T03:52:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T02:56:31.000Z (over 2 years ago)
- Last Synced: 2024-05-02T01:10:04.276Z (6 months ago)
- Topics: 1-bit, bmp, iot, monochrome, node
- Language: JavaScript
- Homepage:
- Size: 219 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.