Small code files to Images and Vice-Versa
Reason this release was yanked:
File Isssues
Project description
ImgRar v1.0
Overview
ImgRar is a versatile command-line tool for:
- Code to PNG Conversion: Transforming codes (up to several kilobytes in size) into visually encoded PNG images.
- PNG to Code Conversion: Decoding PNG images back into their original codes.
- MP4 Video Preparation: Preparing PNG files for MP4 video creation (future functionality).
Key Features
- Seamless Conversion: Effortlessly switch between code and PNG formats.
- Customizable Frame Size: Specify the frame size during code-to-PNG conversions for precise output.
- Flexible Directories: Define input and output directories for streamlined workflows.
Requirements
- Python Version: Python 3.6 or higher.
- Dependencies:
- Built-in libraries:
argparse,os.
- Built-in libraries:
Installation
- Clone the Repository:
git clone https://github.com/your-repo/ImgRar.git
- Navigate to the Directory:
cd ImgRar
- Install Required Dependencies:
If additional modules are needed, install them using
pip.
Usage
Command-Line Arguments
Run the tool with these arguments:
| Argument | Short Form | Required | Description |
|---|---|---|---|
--Output |
-output |
Yes | Directory to save the output files. |
--Input |
-input |
Yes | Directory containing input files to process. |
--Code2Png |
-code2png |
No | Enable code-to-PNG conversion mode. |
--Png2Code |
-png2code |
No | Enable PNG-to-code conversion mode. |
--fsize |
-fsize |
No | Set the frame size for PNG conversion (default: 320*240). |
Example Commands
-
Code to PNG Conversion:
python main.py -input ./input_dir -output ./output_dir -code2png -fsize 640*480
Converts code files in
input_dirto PNG images, saving them tooutput_dirwith a frame size of 640x480. -
PNG to Code Conversion:
python main.py -input ./input_dir -output ./output_dir -png2code
Converts PNG images in
input_dirback into code files, saving them tooutput_dir.
Directory Structure
ImgRar/
|
├── BaseConversion.py # Core logic for conversions.
├── main.py # Application entry point.
├── README.md # Documentation file.
├── input_dir/ # Example input directory (replace with your path).
├── output_dir/ # Example output directory (replace with your path).
Notes
- Implementation Details: Ensure the
BaseConversionclass inBaseConversion.pyincludes bothcode2pngandpng2codemethods. - Input Files: Use appropriate input files for smooth processing.
License
This project is licensed under the MIT License. Refer to the LICENSE file for more details.
Contributing
We welcome contributions! To contribute:
- Fork the repository.
- Create a feature branch.
- Submit a pull request.
Contact
For support or questions, email: your-email@example.com.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Imgrar-1.0.1.tar.gz.
File metadata
- Download URL: Imgrar-1.0.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c3158d97e26301eb27a3d08fd332753b066ec9a6da0a060f03f1bd995c6273c
|
|
| MD5 |
0900066dce912cf86c7eedc656b2e4a1
|
|
| BLAKE2b-256 |
b01de000b4f1a176a51a0b375f17eb748ab7836faa02b19dcda9f5341496ddcd
|
File details
Details for the file Imgrar-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Imgrar-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd707a34454dc08486ce11095937e8b7161a128a729ebd7dd1550639558ea455
|
|
| MD5 |
8de55344e886359113b27fdc2fadea0c
|
|
| BLAKE2b-256 |
d69a8a542be4552f6347b5e49db5f022fbe63e97fa53c45fdd16d152e4f4b94c
|