ImgRar is a tool for converting small to medium-sized codes to images and vice-versa. This tool provides a simple command-line interface to perform these conversions.
- Convert code to PNG image.
- Convert PNG image to code.
- Specify input and output directories.
- Set the frame size for image conversion.
- Python 3.x
- Dependencies listed in
requirements.txt
To use ImgRar, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/ImgRar.git
-
Navigate to the project directory:
cd ImgRar
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the ImgRar tool:
python convert.py [options]
-output
,--Output
: Set the output directory.-input
,--Input
: Set the input directory.-code2png
,--Code2Png
: Convert from code to PNG image.-png2code
,--Png2Code
: Convert from PNG image to code.-fsize
,--fsize
: Set the frame size.
Example usages:
-
To convert code to PNG image:
python convert.py -input [./input_dir] -output [./output_dir] -code2png [1|true] -fsize [256|num]
-
To convert PNG image to code:
python convert.py -input [./input_dir] -output [./output_dir] -png2code [1|true] -fsize [256|num]
You can install this tool by cloning the GitHub repository and installing the required dependencies as mentioned in the Usage section.
This project is licensed under the BSD License - see the LICENSE.md file for details.