https://github.com/m4tx/txttobitmap
Simple script for converting files to bitmaps
https://github.com/m4tx/txttobitmap
Last synced: 10 months ago
JSON representation
Simple script for converting files to bitmaps
- Host: GitHub
- URL: https://github.com/m4tx/txttobitmap
- Owner: m4tx
- License: mit
- Created: 2016-04-27T19:29:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T21:34:01.000Z (over 2 years ago)
- Last Synced: 2025-07-07T00:11:30.550Z (12 months ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/txttobitmap
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===========
txttobitmap
===========
Simple script that converts given file to a bitmap.
The project emerged as a result of wondering "How to compress long text into a form that does not look scary for a human being?". While the generated images are obviously useless, it's still fun to play around with them.
Requirements
------------
* Python 3.2+
Installation
------------
::
pip install txttobitmap
Usage
-----
::
txttobitmap --mode {palette,grayscale} input output
* *mode* - one of the values:
* *palette* - use 16 color palette (see: `Windows 16-color palette on Wikipedia `_) and represent each byte as two pixels
* *grayscale* - represent each byte as grayscale pixel
* *input* - input file to convert
* *output* - output file to save the bitmap as