Otherwa / Imgrar

Code to Image and Vice-Versa πŸ’€

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImgRar v1.0

baseconversion py convert py

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.

Table of Contents

Features

  • Convert code to PNG image.
  • Convert PNG image to code.
  • Specify input and output directories.
  • Set the frame size for image conversion.

Requirements

  • Python 3.x
  • Dependencies listed in requirements.txt

Usage

To use ImgRar, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/ImgRar.git
    
  2. Navigate to the project directory:

    cd ImgRar
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Run the ImgRar tool:

    python convert.py [options]
    

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]
    

Installation

You can install this tool by cloning the GitHub repository and installing the required dependencies as mentioned in the Usage section.

License

This project is licensed under the BSD License - see the LICENSE.md file for details.

About

Code to Image and Vice-Versa πŸ’€

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%