|
macimg is a Python package for manipulating images using Objective-
frameworks.
Example: Applying Image Filters
from macimg import Image
from macimg.filters import (
Bloom,
Comic,
Crystallize,
Edges,
Invert,
Sepia,
Vignette
)
img = Image("assets/Iceland1.jpg")
img.show_in_preview()
Vignette(intensity=10).apply_to(img)
img.show_in_preview()
filters = [
Comic(),
Edges(),
Invert(),
Sepia(),
Bloom(),
Crystallize(crystal_size=50)
]
for index, filter in enumerate(filters):
filter.apply_to(img)
img.show_in_preview(i)
|