Python extension for the CImg library.
Project description
README
pycimg is a python extension for the CImg library.
The package contains a single class CImg that provides access to the image processing methods of the CImg library.
Pixel data of CImg objects can be accessed as a numpy array.
Vice versa new CImg objects can be created from pixel data in a numpy array or an image file. Supported file formats are png, jpeg, tiff, bmp, and cimg.
from pycimg import CImg
import numpy as np
# Load image from file
img = CImg('test/test.png')
img.display()
# Access pixel data as numpy array
arr = img.asarray()
# Set pixels in upper left 100 x 100 px rectangle
arr[:,:,0:99,0:99] = 0
# Pixel data is shared with the image instance
img.display()
# Create image from numpy array
img = CImg(np.random.randn(100,100))
Features
Installation
Install pycimg by running:
pip install pycimg
Documentation
See readthedocs.
License
The project is licensed under the GPL3 license.
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 Distribution
Built Distributions
File details
Details for the file pycimg-2.0.2.tar.gz
.
File metadata
- Download URL: pycimg-2.0.2.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5d03eeddc5d29144d1817161ededdd63a7b82230368ee10b10351e2197b7c228
|
|
MD5 |
1d3132281b1f9011d326acc653c66475
|
|
BLAKE2b-256 |
53dabd5b03942bba5a84dadf492fe6524a4c741a3ffa186d0764bf6d58a81bb4
|
File details
Details for the file pycimg-2.0.2-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8e25ffe1f2f09f9c6a1a6269c8e8348e7dfc15640d06a9ed4d76d4fc7b3a0187
|
|
MD5 |
22a9b4d9f503c341e128d686a53dd37b
|
|
BLAKE2b-256 |
88a7a76724df61a82735db9f8ffae2daac3604d9706ac541203204d8fca8d398
|
File details
Details for the file pycimg-2.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7d4bc47d8cf9ed1f3273684af7c58fe78c395e0ff6e8143d910469d7bd26bad4
|
|
MD5 |
09a52f573631cd44da55d3fea2cc8dbe
|
|
BLAKE2b-256 |
276cbdd38e7e2f2f7b30eb09dd3c63ca4ef45f9c2c90d2932e9d0808b7199d7d
|
File details
Details for the file pycimg-2.0.2-cp311-cp311-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp311-cp311-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.11, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0ce147a399e2990507f051d9ebdd50097f512c0198ff1f4864f290ecc97591b1
|
|
MD5 |
0a336fa0e0ad0242c9acc50cd159ab8f
|
|
BLAKE2b-256 |
25bb4b23231e6b6528ce77cf1841a1a36e1b8abf82fadd81042c4e4b3199096c
|
File details
Details for the file pycimg-2.0.2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3dc1a8a54f320be342036113dcab3045f600d11e97e551bd27a175711fa0ae58
|
|
MD5 |
2989c90fcfbb6bab1e4d125ddd5fd014
|
|
BLAKE2b-256 |
e226f8ed6870a67b58ee14be759596e71871e7fdde8c18e7597fd476844768fb
|
File details
Details for the file pycimg-2.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fcdc957d7a8cf4ca2a2131f34160d9cd4c7ae695c6c54ff8b3a958f296aeceb7
|
|
MD5 |
59a124fcadb9d8f016e2a8aed86dd5b4
|
|
BLAKE2b-256 |
921af15cb879142c20c278ad4ecb28027f893b400d39e84f719e6cfccd14f452
|
File details
Details for the file pycimg-2.0.2-cp310-cp310-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
35ee00bf9cd02085cfd62eeaf6dd5e8953524c49f679f1da01b195615b695f69
|
|
MD5 |
4c04c4d11b3c053696741e6c23fee843
|
|
BLAKE2b-256 |
e9f39c1c1311835f3ec9e9613d1bc51d02197e253fb0e2077d81a740c89662f2
|
File details
Details for the file pycimg-2.0.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
dda87b6f716f92f83c4afb89dfc38d9be01517924be071dc309f1d521a73fd80
|
|
MD5 |
8c33cdba685879490be5a1fbb771972c
|
|
BLAKE2b-256 |
3347c5ed864fb692671aa22ca9992290a2d41da7eb273aa9ca6a2aa0ad45a6e7
|
File details
Details for the file pycimg-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f917e9fa77a2fd4b9614408767f6801973b9c08c6331049f271ce4c031bc3c76
|
|
MD5 |
34e344ef519befec1a09508b2cd8dd25
|
|
BLAKE2b-256 |
560e7e7cbeed238f96b92c31f46ab3cc4cf8e8ec2adb4069d06d354a59418c78
|
File details
Details for the file pycimg-2.0.2-cp39-cp39-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2066d78dbda1c882ce9b0b07efceda96ed8abad90256d3fa842af3422477a631
|
|
MD5 |
002b6cb36c3912e19865cbc830d5af35
|
|
BLAKE2b-256 |
89311362e1e12e18a0b7ca3b3e5792c56fb6e8a48807769603f57a3081168389
|
File details
Details for the file pycimg-2.0.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c9d4777c6477fa0366fe71a7b3379e5f5454594a18edfc7ebb540f1079e9f0c9
|
|
MD5 |
5113e3e0b0dc6338d25dc88f27c9e5e8
|
|
BLAKE2b-256 |
a8b0de93c0a05f978cff14b376dfb5c192657109800ee952e55c60130bab55b1
|
File details
Details for the file pycimg-2.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
441906530a8a251311e9ca5c6fa5ada84282c1f5c3b32af35704febeacf1bf9f
|
|
MD5 |
ce599d2142fcc0c6d4307a6b701829e6
|
|
BLAKE2b-256 |
3cda251ae440245a84a1219eab7f55f3f5be7c9cdf5a5191b5c11917c644fb12
|
File details
Details for the file pycimg-2.0.2-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
71da441cad142d255d4ac2cb9b447d2ed673e37bef09de48f7f5fc0c76a861ef
|
|
MD5 |
44f0cc8bf0bf9792f4a6f5d0062c68fd
|
|
BLAKE2b-256 |
972eb3e883b75d6edd02cd55eaa6066fc3a674b4af49c0f59819c70ab4302e90
|
File details
Details for the file pycimg-2.0.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
842c30a7f688866dc1230e64d7168935ac4949cd46cbeb886f7c2d9e384e8c00
|
|
MD5 |
2ad4ff32711a7ca0b380875ca9d1b476
|
|
BLAKE2b-256 |
a11d32fdd6cf8690b19b5305ff35cb1db3de7b81760ac9a8cbf5ceb3c85dcc3c
|
File details
Details for the file pycimg-2.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7a5f4019d784bba512cf0ce80081b70b795a594c590bc5e6036fc23dd8381f19
|
|
MD5 |
01ff95e49b2fce92a1586ea929f141c6
|
|
BLAKE2b-256 |
2752ec727a07ddb84ca2bd247c4b1c82d37d5ba6b60b1208c11e8d28e6b779d7
|
File details
Details for the file pycimg-2.0.2-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
63757d558c5e15b8ca17fcbd5b7c3d9186722287b7850b8da466ecd766836063
|
|
MD5 |
e2dd2d6ee3181c908f15b8932aa4a630
|
|
BLAKE2b-256 |
2d7b0cbc5b255c5e67aaa73d58d70b9eb52ea5bbaa0e7d7b40d9d78d450a3572
|
File details
Details for the file pycimg-2.0.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0e1a6a5e5d051fde7bf4d91e7286195f3ce634774117ee7bb7b039cb0a175dc2
|
|
MD5 |
8a84a43ccb2aa8617976f2b9bd587ba2
|
|
BLAKE2b-256 |
d1f538f58461654023940f2bb1db7be138324ebd514abff93d1f1f1922dc6251
|
File details
Details for the file pycimg-2.0.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
905b154d0396d8e82d8dd99263a9ddb91578f70d6faafaf385b13a648cf8cd20
|
|
MD5 |
6cfe94ee1221be2519f47b8f495cdbe4
|
|
BLAKE2b-256 |
ee9bcd0efee8f1d86582640cf7be6652976f36677b1fc5a72de7b223741c48dd
|
File details
Details for the file pycimg-2.0.2-cp36-cp36m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pycimg-2.0.2-cp36-cp36m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.6m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8f1d1535bb5975d76157ba1ecfbe0db06f0cf058d54accdd4a776e1f823a927d
|
|
MD5 |
165fcfc56ea4eaeab2c536de3e266ac6
|
|
BLAKE2b-256 |
ab77f048fcc2bfed5bb5338d2ade9cad883ab1ec3e73b3fed385295b4b5802fa
|