Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l480/img2bmp-proxy
🖼️ Creates monochrome bitmaps from graphical image files using image thresholding
https://github.com/l480/img2bmp-proxy
bitmap bmp bmp-image eink epaper
Last synced: 20 days ago
JSON representation
🖼️ Creates monochrome bitmaps from graphical image files using image thresholding
- Host: GitHub
- URL: https://github.com/l480/img2bmp-proxy
- Owner: L480
- License: apache-2.0
- Created: 2024-02-20T16:01:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T16:03:25.000Z (11 months ago)
- Last Synced: 2024-02-20T17:28:25.397Z (11 months ago)
- Topics: bitmap, bmp, bmp-image, eink, epaper
- Language: Python
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# img2bmp-proxy
Creates monochrome bitmaps from graphical image files (such as JPEG, PNG, etc.) hosted on public URLs using image thresholding. This proxy can be used to prepare images for e-paper displays.
## Usage
```bash
curl http://localhost:8080/?width=1024&height=469&threshold=200&url=https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Test-Logo.svg/2560px-Test-Logo.svg.png
```| URL Parameter | Description |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `width` | Width to resize the image to |
| `height` | Height to resize the image to |
| `threshold` | Pixel threshold value
If the pixel value is smaller than the threshold, it's set to 0, otherwise it's set to a maximum value. |
| `url` | Image URL |## Samples
### PNG (1000x1000)
![Example PNG](./images/test.png)
### BMP (1000x1000)
![Example BMP](./images/test1000.bmp)
### BMP (500x500)
![Example BMP](./images/test500.bmp)
## Requirements
- Python 3.12