Image Editor Library
The image-editor library is a simple yet powerful Python package for editing images with various drawing tools and effects. Built on top of the popular Pillow library, this library allows you to perform a wide range of image manipulations, including adding strokes, shapes, text, and applying filters.
Features
- Draw strokes, rectangles, and ellipses.
- Add text with customizable font size and color.
- Apply effects like blur, grayscale, sepia, and sharpen.
- Resize, rotate, and flip images.
- Save edited images in various formats.
Installation
You can easily install the image-editor library via pip:
pip install image-editor
Usage
Here's a quick example of how to use the image-editor library:
import image_editor as editor
# Load the image using the DrawingImg class
image = editor.load('img.png')
# Perform operations using the class methods
image.stroke(10, 10, 200, 200, width='5px', style='fountain pen')\
.rectangle(50, 50, 150, 150, outline='red', fill='blue')\
.add_text("Hello World", (100, 100), font_size=30, color='white')\
.blur(radius=5)\
.save('edited_image.png')
Documentation
For more detailed usage and API references, please refer to the documentation.
Contributing
Contributions are welcome! If you have suggestions for improvements or new features, please create an issue or submit a pull request.
- Fork the repository
- Create a new branch
- Make your changes
- Commit your changes
- Push to the branch
- Create a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
- This library is built on top of the Pillow library for image processing.
Release files for image-editor 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| image-editor-0.1.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| image_editor-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / image-editor-0.1.tar.gz
| Download URL | image-editor-0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54abfaac32662cef7b7d17bd7536be5ad83a5da70c85548e9529f39d3a8ddbe4
|
|
BLAKE2b-256 checksum How to use checksums |
718e2151b4d45b28dec7ddb692cdc347bd895c691aac72b49d1e35ea38f9ff66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / image_editor-0.1-py3-none-any.whl
| Download URL | image_editor-0.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0855d78293add474605c6d037426d455b423dacb39afdeca54146c6b7dad1e4d
|
|
BLAKE2b-256 checksum How to use checksums |
e748683f8c7dba97a43d5d1094ec43057cb277c7a88160ae73392927021e644b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|