Name | da-vinci JSON |
Version |
0.4.0
JSON |
| download |
home_page | https://github.com/ui/da-vinci |
Summary | A simple image manipulation library aiming to make common image tasks easy. |
upload_time | 2023-07-11 13:37:17 |
maintainer | |
docs_url | None |
author | Selwin Ong |
requires_python | |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
|
coveralls test coverage |
No coveralls.
|
A simple image manipulation library aiming to make common image/photo
manipulation tasks easy. This library is still under development,
API may also change at any time.
Requires PIL/Pillow.
Example usage::
from da_vinci import Image
image = Image('lena.jpg')
image.flip('horizontal')
image.resize(width=10, height=10)
image.save()
# Opening an image from URL, rotating and change it's format
image = Image('http://stamps.co.id/static/merchants/img/logo.png')
image.rotate(degrees=90)
image.set(format='jpg', quality=85)
image.save() # Creates a file logo.jpg
# Manipulating saturation, brightness, contrast and sharpness
# Accepts values range from -100 (decrease) to 100 (increase)
image.adjust(saturation=-100)
image.adjust(brightness=-75, contrast=50, sharpness=-20)
If you need 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
Changelog
---------
Version 0.4.0
=============
* Support Pillow 10
* Preserve EXIF data when image is rotated
Version 0.3.0
=============
* Added webp extension support
Version 0.2.2
=============
* Added bmp extension support
Raw data
{
"_id": null,
"home_page": "https://github.com/ui/da-vinci",
"name": "da-vinci",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Selwin Ong",
"author_email": "selwin.ong@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/86/e7/10168a7e22e060d7ed008cb0529669e13817c9b2401c5177d558fd436e37/da-vinci-0.4.0.tar.gz",
"platform": null,
"description": "A simple image manipulation library aiming to make common image/photo\nmanipulation tasks easy. This library is still under development,\nAPI may also change at any time.\n\nRequires PIL/Pillow.\n\nExample usage::\n\n from da_vinci import Image\n\n image = Image('lena.jpg')\n image.flip('horizontal')\n image.resize(width=10, height=10)\n image.save()\n\n # Opening an image from URL, rotating and change it's format\n image = Image('http://stamps.co.id/static/merchants/img/logo.png')\n image.rotate(degrees=90)\n image.set(format='jpg', quality=85)\n image.save() # Creates a file logo.jpg\n\n # Manipulating saturation, brightness, contrast and sharpness\n # Accepts values range from -100 (decrease) to 100 (increase)\n image.adjust(saturation=-100)\n image.adjust(brightness=-75, contrast=50, sharpness=-20)\n\n\nIf you need more extensive manipulation, an escape hatch to PIL\nis also available::\n\n image = image.from_file('a.jpg')\n pil_image = image.get_pil_image()\n # Do whatever you need to do with the pil image\n # And if you want to convert this back to a da_vinci image\n image.set_pil_image(pil_image)\n\nTests\n\nTo run tests::\n\n python -m unittest tests\n\nChangelog\n---------\n\nVersion 0.4.0\n=============\n* Support Pillow 10\n* Preserve EXIF data when image is rotated\n\nVersion 0.3.0\n=============\n* Added webp extension support\n\nVersion 0.2.2\n=============\n* Added bmp extension support\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple image manipulation library aiming to make common image tasks easy.",
"version": "0.4.0",
"project_urls": {
"Homepage": "https://github.com/ui/da-vinci"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ff1db92a04402f765efd96d024a5077b32f429f3c34271d4fbcf48d65ea543b7",
"md5": "df011288ffc3040ed5cc576bd158ca02",
"sha256": "2039c67fa8e2338f8457362a0a8d672a4e19c970a41a86fc87240f6702ead762"
},
"downloads": -1,
"filename": "da_vinci-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "df011288ffc3040ed5cc576bd158ca02",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6142,
"upload_time": "2023-07-11T13:36:55",
"upload_time_iso_8601": "2023-07-11T13:36:55.656801Z",
"url": "https://files.pythonhosted.org/packages/ff/1d/b92a04402f765efd96d024a5077b32f429f3c34271d4fbcf48d65ea543b7/da_vinci-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "86e710168a7e22e060d7ed008cb0529669e13817c9b2401c5177d558fd436e37",
"md5": "634be24137ea16a797b9b5d08efdde37",
"sha256": "130bc0dd7ff69294917eec867ef0d55a19d6006afa63b2b9101570153372dd33"
},
"downloads": -1,
"filename": "da-vinci-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "634be24137ea16a797b9b5d08efdde37",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5363,
"upload_time": "2023-07-11T13:37:17",
"upload_time_iso_8601": "2023-07-11T13:37:17.132306Z",
"url": "https://files.pythonhosted.org/packages/86/e7/10168a7e22e060d7ed008cb0529669e13817c9b2401c5177d558fd436e37/da-vinci-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-11 13:37:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ui",
"github_project": "da-vinci",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "da-vinci"
}