ImagePy is a GUI utility tool for performing basic image analysis. It was developed as part of Image processing algorithms (pl: Algorytmy przetwarzania obrazów) subject during the third year of Computer Science studies. The tool is implemented in Python 3.11 with minimal external dependencies.
For now, application is not published on https://pypi.org/, so it has to be installed manually from this repository.
Inside your virtual environment:
- Install Python package:
pip install git+https://github.com/KacperMayday/ImagePy.git
- Run:
imagepy
Check Usage section to see how to compile and execute application as .exe
file.
Documentation was uploaded as PDF file in docs/
in this repository. Documentation is written in Polish, but has
lots of screenshots which may be helpful. If you encounter any problems, check FAQ section or report an Issue.
It is recommended to use make to get started. If you do not have make or do not want to use it, you may invoke all commands manually in your local Python environment.
Compilation to executable file is done with PyInstaller. Compilation
configuration is in ImagePy/imagepy.spec
file.
- Clone Git repository:
git clone https://github.com/KacperMayday/ImagePy.git
- Go to project root directory:
cd ImagePy
- Run:
make build
- Compiled EXE file will be saved in newly created
dist/
directory.
- Install build dependencies:
pip install "imagepy[pyinstaller] @ git+https://github.com/KacperMayday/ImagePy.git"
- Compile EXE file:
pyinstaller ImagePy/app.spec
- Compiled EXE will be saved in newly created
dist/
directory.
Development setup consists of installing external dependencies, linters, pre-commit setup.
- Clone Git repository:
git clone https://github.com/KacperMayday/ImagePy.git
- Go to project root directory:
cd ImagePy
- Create development virtual environment:
make install-dev
- Just before committing your changes run:
make lint
Yes, some options aren't applicable for every image format. Currently, all options are available for users to select, regardless image attributes, but clicking them has no effect (i.e. binary operations will not work when selected image is in RGB colorscale). Refer to the documentation which options are available for your image format.
Sometimes PyInstaller conflicts with Windows antivirus software. To solve this issue, add your project directory as an exception in Windows Security component. Reference: https://stackoverflow.com/questions/77266764/i-get-a-virus-alert-when-i-convert-my-py-file-into-an-exe-file-how-do-i-fix-i
Executable file created with PyInstaller is platform dependent. This means that if you create an .exe
file on Windows
machine, it won't work on Linux. For each platform you need to create separate EXE file.