A python library and command line tool to convert text to images and back.
Project description
ImageScript
A python library and command line tool to convert text to images and back. Includes optional en-/decryption and steganography.
Disclaimer
This is a hobby project and not meant for production use. Most of it was also created in one day, so there might be some bugs.
Installation
Simply install using pip:
pip install ImageScript
You can also build it from scratch from within the downloaded repository using build:
pip install --upgrade build
python -m build
Usage
Command Line
You can simply use the command line tool to convert text to images and back. Each sub-command has additional options.
imagescript [-h] [-V] {to_image,to_text,execute,pack,unpack} ...
A command line tool to convert text into images and back.
Also supports executing images as scripts and basic Steganography with pack and unpack.
options:
-h, --help show this help message and exit
-V, --version Print the version number and exit.
command:
{to_image,to_text,execute,pack,unpack}
The command to execute.
to_image Convert text to an image.
to_text Convert image to a text.
execute Execute an image file containing a python script. Be careful when using this command.
Do not execute scripts from unknown sources!
pack Hide a text file in an existing image. (Steganography)
unpack Extract text from an image file with hidden data. (Steganography)
A few examples:
Convert text to an image and also encrypt it using a password prompt:
imagescript to_image -o output.webp -P input.txt
Convert the previously converted image back to a script file using a directly supplied password:
imagescript to_text -o input.out.txt --password mysecret output.webp
Use steganography to hide a text file in an image:
imagescript pack -o output.webp my_data.txt cover_image.webp
Change Log
- Version 1.1.0 - 10.11.2024 Added more secure way to supply passwords
- Version 1.0.0 - 10.11.2024 Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file imagescript-1.1.0.tar.gz
.
File metadata
- Download URL: imagescript-1.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d45dea7108e3f8e8906c4c80412bd2447c4f005fb559d7f5f2a8b827709c6a0a |
|
MD5 | f5a32ab1740ae4408f6a5991d2adc51c |
|
BLAKE2b-256 | b2ffd9440a947aa0ecfd3a6227fde8652a651b51e87fe545ee63afa649d3f24b |
File details
Details for the file ImageScript-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: ImageScript-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6a1b0ed1c5c5a2358e2270d2387b987bc98e9a681a5a628e3d9ec920817566 |
|
MD5 | 9ce719093029fb02ff455f11cbf89dd6 |
|
BLAKE2b-256 | f6bc45fac92a9c43bc89ac0d630eba467b1607f998128b71c3a4a60c76cca98a |