Clonable referential to initialize this project with the best practice.
Image Fixer is a simple application that allows users to clean a corrupted image.
To install the project, make sure you have Python 3.8 or later version
and pip installed on your machine. And then run the following command lines.
git clone git@github.com:mokira3d48/ImageFixer.git image_fixer
cd image_fixer
sudo rm -r .git
git initAnd then,
sudo apt install cmake python3-venvInstall Cmake and Virtual env;make venvorpython3 -m venv envcreate a virtual env into directory namedenv;source env/bin/activateactivate the virtual environment namedenv;make installinstall the requirements of this package;make devinstall the package in dev mode in virtual environment;make testrun the unit test scripts located attestsdirectory;make runrun script located atsrc/imfix/__main__.py.- Or Run
imfixas a command line to runsrc/imfix/__main__.py.
git clone git@github.com:mokira3d48/ImageFixer.git image_fixer
cd image_fixerAnd then, delete the hidden directory named .git located at the root
of the directory project.
And then,
- Install python for windows;
- Open your command prompt;
- Run
python3 -m venv envto create a virtual env into directory namedenv; - Run
pip install -r requirementsto install the requirements of this package or project; - Run
pip install -e .install the package in dev mode in virtual environment; - Run
python3 -m image_fixerto run main script located atsrc/image_fixer/__main__.py. Or Runimfixas a command line to runsrc/image_fixer/__main__.pyand start the application.
Here is an example how to clean an image or all image contained on a directory:
imfix path/to/image path/to/target/directory
# or
imfix path/to/images/directory path/to/target/directoryAllow to clean a corrupted image.
To execute the unittest, make sure you have pytest package installed,
and then run the following command line:
make test or
pytestContributions are welcome! Please follow these steps:
- Create a new branch for your feature (
git checkout -b feature/my-feature); - Commit your changes (
git commit -m 'Adding a new feature'); - Push toward the branch (
git push origin feature/my-feature); - Create a new Pull Request or Merge Request.
This project is licensed under the MIT License. See the file LICENSE for more details, contact me please.
For your question or suggestion, contact me please :
- Name : Arnold Mokira
- Email : dr.mokira@gmail.com
- GitHub : mokira3d48