cmagick
Cmagick is a subprocess-based simple ImageMagick interaction for Python, supporting Python 3.6+ and Linux distributions.
The functionalities of ImageMagick implemented in cmagick are:
-Converting images to the following formats (bmp,eps,gif,tiff,webp,wbmp,tga,png,jpg,jpeg,hdr,exr)
-Resizing pictures with a declarative size
-Support path arguments
Usage
Examples:
To convert images
from cmagick import cmagick
cmagick.convert('website.jpg', 'website.webp')
To resize images
from cmagick import cmagick
cmagick.resize('website.jpg','100x100','website.jpg')
To convert and save in a defined directory
from cmagick import cmagick
cmagick.convert('website.jpg', '/Desktop/newname.webp')
To check the current formats available
from cmagick import cmagick
print(cmagick.list_formats())
Prerequisites
Python 3.6+
imagemagick for apt Debian/Ubuntu ImageMagick for yum RPM
Installation
You can install the package from PyPI:
pip install cmagick
You can install the package the GitHub repository:
$ git clone git://github.com/aissa-laribi/cmagick.git
$ cd cmagick/
$ python3 setup.py install --user
To Uninstall
$ pip uninstall cmagick
Release files for cmagick 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmagick-0.1.4.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cmagick-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / cmagick-0.1.4.tar.gz
| Download URL | cmagick-0.1.4.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6355831afb46d52dd488c158fb5c0675c9bc73b2d52e4fd884b4d264df01c052
|
|
BLAKE2b-256 checksum How to use checksums |
d5e0f0c22db92545233f8be8548d211671830718b46a14968844f7cebc50b087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / cmagick-0.1.4-py3-none-any.whl
| Download URL | cmagick-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c2a36d54923f5236d7bb68685a0f791a570cd8bd441dd93ecce7dc10698ddb0
|
|
BLAKE2b-256 checksum How to use checksums |
ee7a6ededa041746d031aa2d796daf58e8e7dcfa57a59e394d72b683ec47d5c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|