{ "info": { "author": "Giorgi Kakulashvili", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# PyCrop\n\n1. What it does\n2. functions\n 1. Contain\n 2. Cover\n3. Installation\n\n## What it does\nMethods to manipulate images\n\n## Functions\n\n### 1.Cover\n- params:\n - path:str - image absolute path\n - size:list - output image size (width:int, height:int)\n - point:list - point from where image is cropped and resized\n - savepath:str - image destination path\n - quality:int - output image quality (from 0 to 100%)\n- returns:\n - (resize status, output image path):tuple\n\nBased on size, it will crop evenly distributed rectagle from point coordinates (in percentage).\n\n### 2.Contain\n- params:\n - path:str - image absolute path\n - size:list - output image size (width:int, height:int)\n - savepath:str - image destination path\n - quality:int - output image quality (from 0 to 100%)\n- returns:\n - (resize status, output image path):tuple \n\nFunction will fit source image in rectagle which has same dimensions as size.\n\n## Installation\n\nTo install the package by `pip` run following command\n\n```sh\n$ pip install pycrop\n```\n\nor\n\n```sh\n$ pip install git+https://github.com/giorgi94/pycrop.git\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/giorgi94/pycrop", "keywords": "pillow,contain,cover", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pycrop", "package_url": "https://pypi.org/project/pycrop/", "platform": "OS Independent", "project_url": "https://pypi.org/project/pycrop/", "project_urls": { "Homepage": "https://github.com/giorgi94/pycrop" }, "release_url": "https://pypi.org/project/pycrop/1.0.1/", "requires_dist": [ "Pillow (>=5.3.0)" ], "requires_python": "", "summary": "Methods to manipulate images", "version": "1.0.1" }, "last_serial": 4821701, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "4aacd14dfc1630876dc0cbf8b3b43445", "sha256": "24bd9383957def8f1b506f1ec9ed5afe8cf93ee92d86d83b1c319390a17b01d9" }, "downloads": -1, "filename": "pycrop-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4aacd14dfc1630876dc0cbf8b3b43445", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2663, "upload_time": "2019-02-14T18:52:25", "url": "https://files.pythonhosted.org/packages/d9/e8/31e43dd3bc41fa82e15a9f845dd64dba07666ffdc7e59c09f60457323dd4/pycrop-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b59a421814e6fa0b9e1ff40416e13c2c", "sha256": "89a1a9c52cf4a13cba7c3c17e7467584f936a5c72ac2f30c0c0f2b7e2be0b0ab" }, "downloads": -1, "filename": "pycrop-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b59a421814e6fa0b9e1ff40416e13c2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2464, "upload_time": "2019-02-14T18:52:26", "url": "https://files.pythonhosted.org/packages/87/9f/1c84332d9ace42c5243267ed09b37d0f6d7fc512555084cc21bfb6dc26b8/pycrop-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4aacd14dfc1630876dc0cbf8b3b43445", "sha256": "24bd9383957def8f1b506f1ec9ed5afe8cf93ee92d86d83b1c319390a17b01d9" }, "downloads": -1, "filename": "pycrop-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4aacd14dfc1630876dc0cbf8b3b43445", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2663, "upload_time": "2019-02-14T18:52:25", "url": "https://files.pythonhosted.org/packages/d9/e8/31e43dd3bc41fa82e15a9f845dd64dba07666ffdc7e59c09f60457323dd4/pycrop-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b59a421814e6fa0b9e1ff40416e13c2c", "sha256": "89a1a9c52cf4a13cba7c3c17e7467584f936a5c72ac2f30c0c0f2b7e2be0b0ab" }, "downloads": -1, "filename": "pycrop-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b59a421814e6fa0b9e1ff40416e13c2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2464, "upload_time": "2019-02-14T18:52:26", "url": "https://files.pythonhosted.org/packages/87/9f/1c84332d9ace42c5243267ed09b37d0f6d7fc512555084cc21bfb6dc26b8/pycrop-1.0.1.tar.gz" } ] }