NumPost is a Python script that converts images into a NumWorks calculator-compatible script. The output script draws an image using a specific color palette, making it easy to display graphics on your calculator.
- Converts images to a NumWorks-compatible format.
- Customizable color palette with 16 colors.
- Easy integration with NumWorks calculator scripts.
- Resizes images to fit the calculator screen (80x60 pixels).
If you are using the Python script, the following requirements must be met:
- Python: This project requires Python (version 3.x).
- Pillow Library: This library is needed for image processing. You can install it using:
pip install Pillow
If you are using the precompiled executable (NumPost.exe), no installations or libraries are required. Simply download and run it on any Windows machine.
There is also a web-based version of NumPost available. However, the output may differ due to the use of different libraries, and the overall image quality is generally better in the Python and executable versions. For optimal results, it's recommended to use the Python script or the executable.
To use the Python script, follow these steps:
- Ensure you have Python and Git installed on your system.
- Clone the repository
git clone https://github.com/Soleil-des-chats/NumPost.git
- Then navigate into the folder
cd NumPost
- Install the Pillow library (if running the script):
pip install Pillow
- Run the script with the following command:
python generate_script.py <image_path> <output_path>
- Replace
<image_path>
with the path to your image file. - Replace
<output_path>
with the desired output file path for the generated script.
- Replace
If you prefer not to deal with libraries or Python installations, you can use the precompiled executable NumPost.exe
:
- Download
NumPost.exe
from the Releases section of this repository. - Open a command prompt (Windows).
- Navigate to the directory containing
NumPost.exe
. - Run the executable with the following command:
NumPost <image_path> <output_path>
- Replace
<image_path>
with the path to your image file and<output_path>
with the desired output path.
- Replace
To build the executable yourself, follow these steps:
- Install PyInstaller if you haven't already:
pip install pyinstaller
- Run the following command to create the executable:
pyinstaller --onefile generate_script.py
- After the build completes, find
NumPost.exe
in thedist
folder.
Here are a few examples of how to use the script and executable:
python generate_script.py path/to/image.png path/to/output_script.py
NumPost path/to/image.png path/to/output_script.py
Both commands will convert the image located at path/to/image.png
into a script that can be run on the NumWorks calculator, saving it as output_script.py
.
This project is licensed under the MIT License - see the LICENSE file for details.
This project is developed by Titimousse. (Me)