{ "info": { "author": "Brad Miller", "author_email": "bonelake@mac.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Education", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: MacOS", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Topic :: Education" ], "description": "cImage - A simple image processing library for Python\n=======================================================\n\n\nInstallation\n============\n\ncopy cImage.py to your site-packages directory.\n\n\nUsage\n=====\n\nThis image library is not going to give you fancy high performance operations on images. It allows you to read in an image and manipulate its pixels. Then you can save the new image to a file, or you can display the image in a window. Thats really about it, but its really all you want to do if you are teaching an introductory computer science course.\n\nImage Types Supported\n---------------------\n\nIf you have PIL installed on your system:\n\n* jpeg\n* gif\n* tiff\n* png\n* etc.\n\nIf you do not have PIL installed then you are stuck with GIF images only.\n\nIf you are using Python 2.6/2.7 I recommend you install Pillow its a simple fork\nof PIL that you can install with easy_install or pip.\n\nIf you are using Python 3 You can get a working version of PIL\nHere: https://pypi.python.org/pypi/Pillow/2.0.0\n\nNote that if you scroll down to the bottom you will find binary installations for Windows. Linux and Mac users can follow the instructions on the page.\n\n\nExample\n-------\n\n::\n\n from cImage import *\n myimagewindow = ImageWin(\"Image Processing\",600,300)\n oldimage = FileImage(\"lutherbell.jpg\")\n oldimage.setPosition(0,0)\n oldimage.draw(myimagewindow)\n\n width = oldimage.getWidth()\n height = oldimage.getHeight()\n newim = EmptyImage(width,height)\n\n for row in range(height):\n \tfor col in range(width):\n \t\toldpixel = oldimage.getPixel(col,row)\n \t\tave=(oldpixel.getRed()+oldpixel.getGreen()+oldpixel.getBlue())/3\n \t\tnewim.setPixel(col,row,Pixel(ave,ave,ave))\n\n newim.setPosition(width+1,0)\n newim.draw(myimagewindow)\n\n myimagewindow.exitOnClick()\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/schellenberg/cImage", "keywords": "image,education", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "thonny-cImage", "package_url": "https://pypi.org/project/thonny-cImage/", "platform": "", "project_url": "https://pypi.org/project/thonny-cImage/", "project_urls": { "Homepage": "https://github.com/schellenberg/cImage" }, "release_url": "https://pypi.org/project/thonny-cImage/1.4.2/", "requires_dist": [ "Pillow (>=2.9.0)" ], "requires_python": "", "summary": "Image manipulation library for media computation education", "version": "1.4.2" }, "last_serial": 3282114, "releases": { "1.4.2": [ { "comment_text": "", "digests": { "md5": "ef9cad21b97333472ec68ab313fbaa1e", "sha256": "5ae10942e8bcb82d0dfc9842ac2a7da66c900ba7aecd9ee438ef3ea068e0a07b" }, "downloads": -1, "filename": "thonny_cImage-1.4.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef9cad21b97333472ec68ab313fbaa1e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9083, "upload_time": "2017-10-26T21:49:19", "url": "https://files.pythonhosted.org/packages/16/90/5a1697e66f970d4f58fd0f50ba9b79a4636a0f8c34c5d05a419472f9afb9/thonny_cImage-1.4.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a8b9e6aa7443936033d318eddce5f75e", "sha256": "a2120c3766b2bb90e5cd4c5bb536cc891d1da7bc653c39cbe08a1544e78b9919" }, "downloads": -1, "filename": "thonny_cImage-1.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a8b9e6aa7443936033d318eddce5f75e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9080, "upload_time": "2017-10-26T21:49:20", "url": "https://files.pythonhosted.org/packages/fd/20/90598ff88fc984a074b4bf4e39b3a9c7d6e5d946680eb26796e6206d5fe6/thonny_cImage-1.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95b5486f2d3f6d36edcf93f25e57151c", "sha256": "1997027471d7561f0cae47d151471f4a0afd2377dd4c4b0329417723cbf3cd5c" }, "downloads": -1, "filename": "thonny-cImage-1.4.2.tar.gz", "has_sig": false, "md5_digest": "95b5486f2d3f6d36edcf93f25e57151c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7071, "upload_time": "2017-10-26T21:49:22", "url": "https://files.pythonhosted.org/packages/38/dd/b70efe6b91e3e62d7b372e0bdbbe16c79c044c3e75e6a1eefebafdbf8fab/thonny-cImage-1.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef9cad21b97333472ec68ab313fbaa1e", "sha256": "5ae10942e8bcb82d0dfc9842ac2a7da66c900ba7aecd9ee438ef3ea068e0a07b" }, "downloads": -1, "filename": "thonny_cImage-1.4.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef9cad21b97333472ec68ab313fbaa1e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9083, "upload_time": "2017-10-26T21:49:19", "url": "https://files.pythonhosted.org/packages/16/90/5a1697e66f970d4f58fd0f50ba9b79a4636a0f8c34c5d05a419472f9afb9/thonny_cImage-1.4.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a8b9e6aa7443936033d318eddce5f75e", "sha256": "a2120c3766b2bb90e5cd4c5bb536cc891d1da7bc653c39cbe08a1544e78b9919" }, "downloads": -1, "filename": "thonny_cImage-1.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a8b9e6aa7443936033d318eddce5f75e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9080, "upload_time": "2017-10-26T21:49:20", "url": "https://files.pythonhosted.org/packages/fd/20/90598ff88fc984a074b4bf4e39b3a9c7d6e5d946680eb26796e6206d5fe6/thonny_cImage-1.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95b5486f2d3f6d36edcf93f25e57151c", "sha256": "1997027471d7561f0cae47d151471f4a0afd2377dd4c4b0329417723cbf3cd5c" }, "downloads": -1, "filename": "thonny-cImage-1.4.2.tar.gz", "has_sig": false, "md5_digest": "95b5486f2d3f6d36edcf93f25e57151c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7071, "upload_time": "2017-10-26T21:49:22", "url": "https://files.pythonhosted.org/packages/38/dd/b70efe6b91e3e62d7b372e0bdbbe16c79c044c3e75e6a1eefebafdbf8fab/thonny-cImage-1.4.2.tar.gz" } ] }