Skip to main content

Glitch Art Toolkit mimicking CRT monitor defects.

Project description

BRImage

Glitch art servlet. Python backend for manipulating images to create glitch-art effects inspired by CRT monitors.

One-liner install (requires Python >=3.7)

pip install BRImage && brimage -h

Table of Contents

  1. Installation and use
    1. pypi
    2. git
  2. Sample image:

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

BRImage-0.1.6.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

BRImage-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl (32.6 kB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

File details

Details for the file BRImage-0.1.6.tar.gz.

File metadata

  • Download URL: BRImage-0.1.6.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for BRImage-0.1.6.tar.gz
Algorithm Hash digest
SHA256 aabf97ff0dc2e9d8dbe4566a159229d0a20872e22194bcd57f05a1c6f57d6c29
MD5 fd5734e59d347709970040fa02d2dbe8
BLAKE2b-256 aff865b0c1e019233c2a26aea0af02cf924b6355a38940da8c4fef0612de63cd

See more details on using hashes here.

File details

Details for the file BRImage-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: BRImage-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for BRImage-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 aa8677431a8b1edba583e8480415315fd6689feeeb09739a147b78ed5c03bab2
MD5 33d13a820c29c8cf495eda5a0438c26a
BLAKE2b-256 937faa1ec0fb41af1b9745c6f07c1b5825686a94eff8c10a81a76d7efa39ca95

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page