Skip to main content

A simple image manipulation library aiming to make common image tasks easy.

Project description

A simple image manipulation library aiming to make common image/photo manipulation tasks easy. This library is still under heavy development, API may also change at any time. Use at your own risk.

Requires PIL/Pillow.

Example usage:

from da_vinci import images

image = image.from_file('a.jpg')
image.flip('horizontal')
image.resize(width=10, height=10)
image.save()

# Opening an image from URL
image = images.from_url('http://stamps.co.id/static/merchants/img/logo.png')
image.rotate(degrees=90)
image.save('b.png')

If you need to do more extensive manipulation, an escape hatch to PIL is also available:

image = image.from_file('a.jpg')
pil_image = image.get_pil_image()
# Do whatever you need to do with the pil image
# And if you want to convert this back to a da_vinci image
image.set_pil_image(pil_image)

Tests

To run tests:

python -m unittest tests

Project details


Download files

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

Source Distribution

da-vinci-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file da-vinci-0.1.0.tar.gz.

File metadata

  • Download URL: da-vinci-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for da-vinci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a5583e817e7dd2b5774c031408e6ae27b025646dd059caed171e207c5b5403fe
MD5 52ac87dc8489e99b75186b2d6fc82eea
BLAKE2b-256 41cdc190354cc9f82a4f000bf89da1ae17ab756e50bd6abbe409985d601fb6b4

See more details on using hashes here.

Supported by

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