Image Transformation ships with platform-specific setup scripts that handle virtual environment creation and dependency installation in a single command. The guide below walks you through cloning the repository, running the appropriate script for your platform, activating the environment, and verifying that the tool is ready to use. A manual fallback is also provided for environments where the scripts cannot be run directly.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Adarsh275/Image-Transformation/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available on your system:- Python 3.8 or later — the codebase uses f-strings and NumPy features that require Python 3.8+. Verify with
python --versionorpython3 --version. - pip — Python’s package installer, bundled with most Python distributions. Verify with
pip --version. - Git — to clone the repository. Verify with
git --version.
Installation Steps
Clone the repository
Clone the Image Transformation repository from GitHub and change into the project directory:
Run the setup script for your platform
The setup script installs The script creates
virtualenv, creates a .venv virtual environment in the project directory, activates it, and installs all dependencies from requirements.txt.- Linux / macOS
- Windows (PowerShell)
.venv/, activates it, then runs pip install -r requirements.txt automatically. You will see green status messages for each step.Activate the virtual environment
The setup script activates the environment during installation, but you will need to re-activate it in any new terminal session before running Once activated, your terminal prompt will be prefixed with
main.py.- Linux / macOS
- Windows (PowerShell)
(.venv) to confirm the environment is active.What Gets Installed
Therequirements.txt pins the following packages (key ones highlighted):
| Package | Version | Purpose |
|---|---|---|
| numpy | 1.22.3 | All pixel-level array operations and matrix math |
| matplotlib | 3.5.1 | Image reading (mpimg.imread) and saving (mpimg.imsave) |
| Pillow | 9.1.0 | Image format support used by Matplotlib’s image backend |
| cycler | 0.11.0 | Matplotlib dependency |
| fonttools | 4.32.0 | Matplotlib dependency |
| kiwisolver | 1.4.2 | Matplotlib dependency |
| packaging | 21.3 | Matplotlib dependency |
| pyparsing | 3.0.8 | Matplotlib dependency |
| python-dateutil | 2.8.2 | Matplotlib dependency |
| six | 1.16.0 | Transitive dependency |
Manual Installation (Fallback)
python main.py --help as shown in Step 4 above.