A package for manipulating images using Objective-C frameworks
Project description
macimg
A Python package for manipulating images using Objective-C frameworks.
Examples
Example 1: Applying Image Filters
from macimg import Image
from macimg.filters import (
Bloom,
Comic,
Crystallize,
Edges,
Invert,
Sepia,
Vignette
)
# Load an image
img = Image("assets/Iceland1.jpg")
img.show_in_preview()
# Apply a single filter
Vignette(intensity=10).apply_to(img)
img.show_in_preview()
# Apply multiple filters
filters = [Comic(), Edges(), Invert(), Sepia(), Bloom(), Crystallize(crystal_size=50)]
for index, filter in enumerate(filters):
filter.apply_to(img)
img.show_in_preview()
The code above produces the following sequence of images:
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
macimg-0.0.1.tar.gz
(14.8 kB
view hashes)
Built Distribution
macimg-0.0.1-py3-none-any.whl
(16.3 kB
view hashes)