Warning: project is unstable now.
Npeg
It is a small and blazingly fast python library for image processing.
Why is it fast?
- Npeg core written on C.
- Npeg support cpu hardware acceleration, for example, avx. (In the process)
- Npeg support gpu gardware acceleration, for example, cuda, opencl. (In the future)
Supported formats
- PNG (In the future)
- JPG (In the future)
- WEBP (In the future)
- TIFF (In the future)
- PBM
- PGM (In the future)
- PPM (In the future)
- PPA (In the future)
Examples
from npeg import img_read, Interpolation
# img rotation.
with img_read('cats.pbm') as img:
img.rotate(10)
img.rotate(-10, Interpolation.INTER_LINEAR)
img.save('rotated_cat.pbm')
# Or you can read file manually.
img = img_read('dogs.pbm')
img.save('dods_cipy.bpm') # Kind of img copying.
img.close()
Installation
$ pip install npeg
Installation from source
Dependencies:
- poetry
- meson
$ git clone https://github.com/neothebestdeveloper/npeg
$ poetry run build_pkg
$ pip install "dist/npeg-0.0.1-py3-none-any.whl"
Release files for npeg 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| npeg-0.0.1.tar.gz | 49.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| npeg-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.2 kB
Release files / npeg-0.0.1.tar.gz
| Download URL | npeg-0.0.1.tar.gz |
|---|---|
| Size | 49.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e68e892f04a63e9714593009dd4c9e72e82538461f94ecc506257cd111c1fa53
|
|
BLAKE2b-256 checksum How to use checksums |
7d4bbc01b8174adbf3c9210009a431ebee855b85717035b1ef9ae040848a9955
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.10.10 Linux/6.2.7-arch1-1
|
Release files / npeg-0.0.1-py3-none-any.whl
| Download URL | npeg-0.0.1-py3-none-any.whl |
|---|---|
| Size | 51.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8dd0e1dc079c015ebe6ef06318e2ec6d146a9d8b0d1cc061803ae5b87d40a42
|
|
BLAKE2b-256 checksum How to use checksums |
ce175dacf137c74c25336b991ac93ef41ffaa5ba18124c4e46de6730afa645e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.10.10 Linux/6.2.7-arch1-1
|