Skip to main content

An utility for converting and resizing images

Project description

cmagick

GitHub cmagick CI PyPI

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

Usage

Examples:

To convert images

from cmagick import cmagick

convert('website.jpg','website.webp')

To resize images

from cmagick import cmagick

resize('website.jpg','100x100','website.jpg')

To check the current formats available

from cmagick import cmagick

print(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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cmagick-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file cmagick-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cmagick-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for cmagick-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27f795a668712ca34f89e98879d3f3c13b1a146466ff72718e171b3eccb2cff5
MD5 98e5eea0d6adaa44ff04899f7fcaac97
BLAKE2b-256 46d7bbc43ebb050a6ea4976c2e22ac8b1b07ba51fdff60f660b461bf145a30d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page