{ "info": { "author": "evuez", "author_email": "helloevuez@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "python-rescale\r\n==============\r\n\r\nA simple tool to resize and crop an image\r\n\r\n```\r\nrescale(image, size, mode=None)\r\n```\r\n\r\n * image: a PIL image object\r\n * size: a 2-tuple (width, height); at least one must be specified\r\n * mode: `CROP_TL` or `CROP_BR`\r\n\r\nIf no height or no width is specified, the mode won't be taken into account, and the image will just be resized.\r\nIf both width and height are provided, and the mode is set top `CROP_TL` or `CROP_BR`, the image will be cropped to the given size using the given mode. Note that the crop is made after the image as been resized (well not exactly, but the result is the same) to preserve as much as possible the content of the image.\r\nThe resize is made so that the original ratio is preserved.\r\nThe mode `CROP_TL` will keep the top left or the image, while `CROP_BR` will keep the bottom right of it.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/evuez/python-rescale/tarball/0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evuez/python-rescale", "keywords": "image,scale,crop,resize", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "rescale", "package_url": "https://pypi.org/project/rescale/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rescale/", "project_urls": { "Download": "https://github.com/evuez/python-rescale/tarball/0.2", "Homepage": "https://github.com/evuez/python-rescale" }, "release_url": "https://pypi.org/project/rescale/0.2/", "requires_dist": null, "requires_python": null, "summary": "A simple tool to resize and crop an image", "version": "0.2" }, "last_serial": 1104345, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f596c5ef31fc39e1270726edf2239e4d", "sha256": "537f4379016f0599c3c4421e6358230babd957c8ae663989e0a47d2246b1637b" }, "downloads": -1, "filename": "rescale-0.1.tar.gz", "has_sig": false, "md5_digest": "f596c5ef31fc39e1270726edf2239e4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1137, "upload_time": "2014-05-23T15:02:58", "url": "https://files.pythonhosted.org/packages/eb/3c/e6d299364c057d19b1d44374e8fd7460b4933e1de004ea29155d5327eba7/rescale-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a9958dc545bbce9483b9ae0187de85d7", "sha256": "4ddd2d5215336d51e0ef019666ad4e267abc2a735bda86632313c7a9adecf892" }, "downloads": -1, "filename": "rescale-0.2.zip", "has_sig": false, "md5_digest": "a9958dc545bbce9483b9ae0187de85d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1532, "upload_time": "2014-05-23T17:52:24", "url": "https://files.pythonhosted.org/packages/2c/3c/8c1787ffd1bc8c333b45d006687e61eb200783feab021f510731f0260c3c/rescale-0.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9958dc545bbce9483b9ae0187de85d7", "sha256": "4ddd2d5215336d51e0ef019666ad4e267abc2a735bda86632313c7a9adecf892" }, "downloads": -1, "filename": "rescale-0.2.zip", "has_sig": false, "md5_digest": "a9958dc545bbce9483b9ae0187de85d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1532, "upload_time": "2014-05-23T17:52:24", "url": "https://files.pythonhosted.org/packages/2c/3c/8c1787ffd1bc8c333b45d006687e61eb200783feab021f510731f0260c3c/rescale-0.2.zip" } ] }