Glitch Art Toolkit mimicking CRT monitor defects.
Project description
BRImage
Glitch Art Library and command line tool for generating glitch-art effects inspired by CRT monitors. One-liner install (requires Python >=3.7)
pip install BRImage && brimage -h
Table of Contents
Installation and use
BRImage now comes with a very minimal command line interface, usable with
brimage -h
pypi
I've made the project available with pip
(you can view the project here):
pip install BRImage
and run with
brimage
Building from source
Requires SWIG.
First, clone the repository
git clone https://github.com/Dustpancake/BRImage && cd BRImage
It is recommended to use a virtual environment
# *nix
python3 -m venv venv && source venv/bin/activate
Generate the SWIG files; for this we require numpy.i
:
curl "https://raw.githubusercontent.com/numpy/numpy/master/tools/swig/numpy.i" > BRImage/clib/numpy.i
Then we generate the .py
and .cxx
files with
cd BRImage/clib \
&& swig -c++ -python -py3 algorithms.i \
&& cd -
We then build with
python setup.py build_ext --inplace
or install into the environment with
pip install .
- Running the script
To run when build from source:
python BRImage
If installed, use
brimage
Sample image:
Input Image | Output Image |
---|---|
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for BRImage-0.1.8-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71bd8beb627994e0a639b420fce983411c30aa0f850085089800764e0c727936 |
|
MD5 | 9aa14fbd6e07eaad2e0da998f2b28e6d |
|
BLAKE2b-256 | c6a256874b2db5ca195d1d46d645fe63fbd1c99d8fb1d246ef55a735cbdd21da |