https://github.com/jerryshell/txtimg
Text to image & Image to text
https://github.com/jerryshell/txtimg
Last synced: 11 months ago
JSON representation
Text to image & Image to text
- Host: GitHub
- URL: https://github.com/jerryshell/txtimg
- Owner: jerryshell
- License: agpl-3.0
- Created: 2024-01-30T05:36:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T14:37:41.000Z (about 2 years ago)
- Last Synced: 2025-01-16T15:27:05.509Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# txtimg
Text to image & Image to text
## Useage
```
Usage: txtimg[EXE]
Commands:
t Text to image
m Image to text
f File to image
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
```
## Example
```bash
$ ./txtimg t "Hello Rust! 你好世界 🦀"
$ file output.png
output.png: PNG image data, 14 x 1, 8-bit/color RGB, non-interlaced
$ ./txtimg m output.png
Hello Rust! 你好世界 🦀
```
```bash
$ du -h romeo-and-juliet.txt
144K romeo-and-juliet.txt
$ md5sum romeo-and-juliet.txt
26ce3b9781d9d75726fab08e3a98e8e7 *romeo-and-juliet.txt
$ ./txtimg f romeo-and-juliet.txt -o raj.png
$ file raj.png
raj.png: PNG image data, 19280 x 1, 8-bit/color RGB, non-interlaced
$ du -h raj.png
60K raj.png
$ ./txtimg m raj.png > raj.txt
$ md5sum raj.txt
26ce3b9781d9d75726fab08e3a98e8e7 *raj.txt
```
## LICENSE
[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)