Skip to main content

A simple image editing library with drawing tools and effects

Project description

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.

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Commit your changes
  5. Push to the branch
  6. 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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

image-editor-0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image_editor-0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file image-editor-0.1.tar.gz.

File metadata

  • Download URL: image-editor-0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for image-editor-0.1.tar.gz
Algorithm Hash digest
SHA256 54abfaac32662cef7b7d17bd7536be5ad83a5da70c85548e9529f39d3a8ddbe4
MD5 17221faedd5640e0ec37daeff6f4e344
BLAKE2b-256 718e2151b4d45b28dec7ddb692cdc347bd895c691aac72b49d1e35ea38f9ff66

See more details on using hashes here.

File details

Details for the file image_editor-0.1-py3-none-any.whl.

File metadata

  • Download URL: image_editor-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for image_editor-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0855d78293add474605c6d037426d455b423dacb39afdeca54146c6b7dad1e4d
MD5 10a0edbb21c4f87379185532866ac4e3
BLAKE2b-256 e748683f8c7dba97a43d5d1094ec43057cb277c7a88160ae73392927021e644b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page