Python package for processing and creating halftone images
Project description
Halftones Package
halftones
is a Python package for generating halftone versions of images. It provides an easy-to-use interface for transforming images into their halftone representations.
Example Output
Example of a halftone image generated by the halftones
package.
Installation
Install the package using pip:
pip install halftones
Example Usage
Here's a simple example to demonstrate how to use the halftones package:
import halftones as ht
from PIL import Image
# Load your image (replace 'path/to/your/image.jpg' with your image file)
image = Image.open('path/to/your/image.jpg')
# Generate a halftone version of the image
image_color_info = ht.generate_halftone_image(image, display_flag=True, grid_width=5)
# The resulting 'image_color_info' contains information about the processed image
This example demonstrates loading an image using the PIL library, processing it with the halftones package, and retrieving the result.
Features
The halftones
package offers a range of functionalities for creating and manipulating halftone images. Here are some of the key features:
- Halftone Pattern Generation: Generate halftone patterns from images, a popular artistic effect that simulates continuous tone imagery through the use of dots.
- Flexible Grid and Tile Configurations: Create grids and tiles with user-specified angles and distances, offering flexibility in designing the halftone effect.
- Command-Line Interface: In addition to being a library,
halftones
can be used as a command-line tool, making it easy to process images directly from the terminal. - Customizable Halftone Effects: Parameters for adjusting the halftone effect, such as alpha transparency and black channel threshold, allow for a wide range of artistic expressions.
These features make halftones
a versatile tool for artists, designers, and anyone interested in image processing and halftone art.
License
The halftones
package is open-source software licensed under the MIT License.
Contact
Email hi@eotles.com for questions.
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
Built Distribution
File details
Details for the file halftones-0.1.1.tar.gz
.
File metadata
- Download URL: halftones-0.1.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d0d0bb32ec8334df54e8451897341801f2092d1913e55d5537802c3bf13c60 |
|
MD5 | fb641aa5857d01a28d6277245a464976 |
|
BLAKE2b-256 | 62381cada21d3b53d53a03a04f02b5b0c18ef7563a6bde6f076ce8a6c3e3f070 |
File details
Details for the file halftones-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: halftones-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74dc59d882f3ad118d30faf21f1fc21c09d5b2650e9cde95fad1bf1f3528127 |
|
MD5 | 5cedf1dcc295f4cdf1b0dc94f2d7cf04 |
|
BLAKE2b-256 | ad66bd237662b5a1c8d7f57fdc53926bd9f573fb3eec3b86ceafdb57fbb3f53a |