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.1a6-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0294afbec1b1e96e76da124b160afbca7d2e24c9c043133014159e400c01d3db |
|
MD5 | e94aae5299781ec77a323922321a5be3 |
|
BLAKE2b-256 | 9b6f7f6024b6627c6b0286ce93b2ab60052e334dfb09d736815ffdaf47fd53e2 |
Hashes for gmic-2.9.1a6-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00b144424ff49ab7c4fc5bbe2fd8c6fe0512ca2312ab49503a72ac082a1999ae |
|
MD5 | 9d07f879bade5632eaff4d9705018f7e |
|
BLAKE2b-256 | e73eabb57fc327c430d85b88f914ff6af459d1b083bea8353ec89cee7d655c3f |
Hashes for gmic-2.9.1a6-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f116ee94c4cb3269da6f390c58f8bda81dafb7b1f006f7005a6e6cabd05c7bc |
|
MD5 | 6352e796c52eea1428cd5404a60fe871 |
|
BLAKE2b-256 | 6683ba5f3e2abc9e2d9e78d9118b127893ea5354e681996856c37567b99ec819 |
Hashes for gmic-2.9.1a6-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e11084fddecff5a0f0732d53288968d36352a64e07ae411cbac4c74ac4a41a |
|
MD5 | 35d6ea70a1565ad3c7004ceb47a9c141 |
|
BLAKE2b-256 | 83fe136c048e2514109e1d482c60d75879a069a0c2dfc82a9b8d3539300abd62 |
Hashes for gmic-2.9.1a6-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30add1f327a319b8c01d18ba403ae4a60b5f43f8cf34153c0cbd63946a2edfee |
|
MD5 | 094d8329c0faf441cf50d412a3c5c3df |
|
BLAKE2b-256 | f77d1a183252399fb7a5a1b2d12478f3c7bbf38c267c1226594e680c436d9dad |
Hashes for gmic-2.9.1a6-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a87bbb15dc5271e9dab65e009e24d5c6b517455e7017afb2aceb60262ff131 |
|
MD5 | 62cd209649794db4e232101e34dc915f |
|
BLAKE2b-256 | 372715c580ae09314ce60086b8e754dba2b3cc15fda65d1d4beac2326ddee864 |