Skip to main content

A python library and command line tool to convert text to images and back.

Project description

ImageScript

PyPI - Version

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:

imagescript to_image -o output.webp -P mysecret input.txt

Convert the previously converted image back to a script file:

imagescript to_text -o input.out.txt -P 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.0.0 - 10.11.2024 Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imagescript-1.0.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

ImageScript-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file imagescript-1.0.0.tar.gz.

File metadata

  • Download URL: imagescript-1.0.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for imagescript-1.0.0.tar.gz
Algorithm Hash digest
SHA256 efd3c70daae6b5d9b339baaabf3c184a122ed6ac2543c7000562b8ee40b7eea3
MD5 2732b363cea7560bab06759af93085fa
BLAKE2b-256 98e1f8d80e58e2de96f9789b7d180507789e3399e051897c44e2fdb6eb77fec1

See more details on using hashes here.

File details

Details for the file ImageScript-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ImageScript-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ImageScript-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4163de26595dc8a1c6eb6815a6fa35f274f7fe01e44ee44ee9b077de53a0c57
MD5 5896b1d48e26f2cf7759571084e54777
BLAKE2b-256 d9dc334ebb075fde79be20cdb5e4a13654a3530b06d7acbb67683d35b191e012

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page