Binary Python3 bindings for the G'MIC C++ image processing library
Project description
Python binding for G'MIC - A Full-Featured Open-Source Framework for Image Processing
https://gmic.eu
gmic-py
gmic-py
is the official Python 3 binding for the G'MIC C++ image processing library purely written with Python's C API.
Its Python package name on pypi.org is just gmic
.
This project lives under the CeCILL license (similar to GNU Public License).
You can use the gmic
Python module for projects related to desktop or server-side graphics software, numpy, video-games, image procesing.
gmic-blender is a Blender3d add-on bundling gmic-py
and allowing you use a new gmic
module from there without installing anything more.
Quickstart
First install the G'MIC Python module in your (virtual) environment.
pip install gmic
G'MIC is a language processing framework, interpreter and image-processing scripting language.
Here is how to load gmic
, and evaluate some G'MIC commands with an interpreter.
import gmic
gmic.run("sp earth blur 4") # On Linux a window shall open-up with a blurred earth
gmic.run("sp rose fx_bokeh 3,8,0,30,8,4,0.3,0.2,210,210,80,160,0.7,30,20,20,1,2,170,130,20,110,0.15,0 output rose_with_bokeh.png") # Save a rose with bokeh effect to file
Longer tutorials are available in the documentation.
Documentation
Full documentation is being written at https://gmic-py.readthedocs.io/.
Supported platforms
gmic-py
works for Linux and Mac OS x 64bits architecture x Python >= 3.6. Windows support is planned for Q4 2020.
In case your environment is a type of Unix, but compiling from source is needed, note that the pip
installer will download gmic-py
's source and most possibly compile it very well.
See the CONTRIBUTING.md
file and the documentation for tips on building gmic-py
for your own OS.
Examples
Using your camera with G'MIC's optional OpenCV linking
If your machine has libopencv
installed and your gmic-py was compiled from source (ie. python setup.py build
), it will be dynamically linked.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for gmic-2.9.1a2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a81f00b1577aaef268afcec656468058880ea5057a276461e3d2a0ca4e26a429 |
|
MD5 | 8eb1d1592f4a1bd11964efe9d8cdf1a5 |
|
BLAKE2b-256 | cfacbc6e65632253e2301a31108a19ec398298ff2a9ba6550ee6b8a1e8024fc9 |
Hashes for gmic-2.9.1a2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 074c2a285d6ceead176b846cb0862267aece3eb3908535345ff830ca92a32a17 |
|
MD5 | 885d7bb83b83da391d4e441900bd3c72 |
|
BLAKE2b-256 | c1ec8a42abc230c148c7a6721981e14a3b34ad3e2084d90ef9232be741c9cc7c |
Hashes for gmic-2.9.1a2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5567842933067723e22a7331c77c2ec56a8aa1358f5c1f789926deaa078f0533 |
|
MD5 | 9fd74bba099e0c6317ebb4cf42ad9c84 |
|
BLAKE2b-256 | 2fd560ec1d4133409b1b78cfef0191c739799e08f961487bf5a6e83459d50c80 |
Hashes for gmic-2.9.1a2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46aa78270419df15df1f42276a0bec41b1801ade27c22cbaaaf4e0775bfe2b53 |
|
MD5 | 0c1a291595817392edc94632fb4e7fc6 |
|
BLAKE2b-256 | 33d5094dff5935e16f18e74788e0272dd13a4fd4c57adcf89b322438819c2a27 |
Hashes for gmic-2.9.1a2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98fed9937094a752f2630c8fc1124127914e1cc2e9e786824804d9b2994fbea7 |
|
MD5 | 96463c670d8a10d013c8fe607b5bc71e |
|
BLAKE2b-256 | 3fbb3df3af5965a7dac85791d3d2be65c0bef6a9a770c23d18777d51e420bcf6 |
Hashes for gmic-2.9.1a2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b76b538dbd164689d413f623b49007ce7da7b5940eec44c2ba81b08a3e91fbb4 |
|
MD5 | b326c49a0d683bc46b14a8e03ecc192b |
|
BLAKE2b-256 | d0cb4514c768ae55ceeb899585dc0c8ce4a1b2c3637c2e3e25ac77ca8c1f1a10 |