Yet Another Python wrapper for GraphicsMagick++
Project description
About
pgmagick is a yet another boost.python based wrapper for GraphicsMagick. (PythonMagick is dead?)
Install
$ pip install pgmagick
Require
GraphicsMagick and Boost.Python.
package install on Ubuntu:
$ apt-get install libgraphicsmagick++-dev $ apt-get install libboost-python1.40-dev
package install on Fedora:
$ yum install GraphicsMagick-c++-devel $ yum install boost-devel
Usage
scale example:
>>> from pgmagick import Image, FilterTypes >>> im = Image('input.jpg') >>> im.quality(100) >>> im.filterType(FilterTypes.SincFilter) >>> im.scale('100x100') >>> im.sharpen(1.0) >>> im.write('output.jpg')
composite example:
>>> from pgmagick import Image, CompositeOperator as co >>> base = Image('base.png') >>> layer = Image('layer_one.png') >>> base.composite(layer, 100, 100, co.OverCompositeOp) >>> im.write('output.png')
more API detail… read to Magick++ API for GraphicsMagick document.
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
pgmagick-0.1.1.tar.gz
(21.9 kB
view details)
File details
Details for the file pgmagick-0.1.1.tar.gz
.
File metadata
- Download URL: pgmagick-0.1.1.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de77b9443071c3829f780bb81d5d07068c34a21b28a2021fc46b3185d37c7aab |
|
MD5 | 476883ca6cbc18b8914065d101b3f266 |
|
BLAKE2b-256 | 76e4541ea1891b78b349e37fdbae076c9142c289c8c4107e9b5c1d54cc578e08 |