{ "info": { "author": "Brad Miller and Dan Schellenberg", "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.7", "Topic :: Education" ], "description": "cImage - A simple image processing library for Python\n=======================================================\n\n\nInstallation\n============\n\n\nIf using Thonny, go to Tools -> Manage Packages, then enter ``cs20-image``. This should install both the image module, and the Pillow module (so you can use any type of image you'd like).\n\n\nIf you are not using Thonny, copy image.py to your site-packages directory, or just keep it in the same folder as the Python scripts that import it.\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 (if you are using Thonny, this was installed along with the image module):\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\n\nExample\n-------\n\n::\n\n import image\n\n win = image.ImageWin(480, 640, \"Image Processing\")\n original_image = image.FileImage('lcastle.gif')\n\n width = original_image.get_width()\n height = original_image.get_height()\n print(width, height)\n\n original_image.draw(win)\n my_image = original_image.copy()\n\n for row in range(height):\n for col in range(width):\n v = my_image.get_pixel(col,row)\n v.red = 255 - v.red\n v.green = 255 - v.green\n v.blue = 255 - v.blue\n my_image.set_pixel(col,row,v)\n\n my_image.draw(win)\n print(win.get_mouse())\n my_image.save('lcastle-inverted.gif')\n print(my_image.to_list())\n win.exit_on_click()\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/bnmnetp/cImage", "keywords": "image,education", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cImage", "package_url": "https://pypi.org/project/cImage/", "platform": "", "project_url": "https://pypi.org/project/cImage/", "project_urls": { "Homepage": "https://github.com/bnmnetp/cImage" }, "release_url": "https://pypi.org/project/cImage/2.0.2/", "requires_dist": [ "Pillow (>=2.9.0)" ], "requires_python": "", "summary": "Image manipulation library for media computation education", "version": "2.0.2" }, "last_serial": 5786466, "releases": { "1.4.1": [ { "comment_text": "", "digests": { "md5": "c4757f6f8e8bcd9da72d9d0ca815793f", "sha256": "4e4ea113437943036cdf618ca5ee0acc7b15296898e13d523867fe8ca5a9a802" }, "downloads": -1, "filename": "cImage-1.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c4757f6f8e8bcd9da72d9d0ca815793f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9059, "upload_time": "2017-12-05T20:48:25", "url": "https://files.pythonhosted.org/packages/dd/71/71dc8f94a6e3da403b95e57a24127ce6b5fa797f541b75db333332bc7794/cImage-1.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e361220ce88e57ee5d021b1ad7383a35", "sha256": "5222ccff7f6ce00af9e07f7e1bc3ad9efa46ebbaeb7aaaad5b94ead47013dbee" }, "downloads": -1, "filename": "cImage-1.4.1.tar.gz", "has_sig": false, "md5_digest": "e361220ce88e57ee5d021b1ad7383a35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7077, "upload_time": "2015-07-06T22:01:40", "url": "https://files.pythonhosted.org/packages/c3/e7/166f3d0c788b29021b9cf966eca88c48e2b060b93e44dc18baa8e7e68f9b/cImage-1.4.1.tar.gz" } ], "1.4.2": [ { "comment_text": "", "digests": { "md5": "c9a8ba19aa9634ffd90e2f3e49239c30", "sha256": "0b4f457bec86f386f928f1ea138304581b73d54366fbd788e31fca3e0a566778" }, "downloads": -1, "filename": "cImage-1.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c9a8ba19aa9634ffd90e2f3e49239c30", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9091, "upload_time": "2017-12-05T20:49:54", "url": "https://files.pythonhosted.org/packages/33/0b/83d6d9d1d1d2e7ca55b79f904d3a03861417ccae01cc843dc156ad100ecb/cImage-1.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "68d34ea6e210b090364619a546e9be8d", "sha256": "75029416ccf62325c1e51cddd0ad4bf413429638145a5eeef0567440466a53c9" }, "downloads": -1, "filename": "cImage-1.4.2.tar.gz", "has_sig": false, "md5_digest": "68d34ea6e210b090364619a546e9be8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7187, "upload_time": "2017-12-05T20:49:55", "url": "https://files.pythonhosted.org/packages/1f/26/80b68199d56cbc2818e13f04534dbc2747c5a33b50ad24b0d2d4ba944dba/cImage-1.4.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "f4f6ea7bda1e0ebe36a1a45a818b31cc", "sha256": "cdd26e00585947755b8e8d63f56d8051459c83634094419bf3388061fea360e6" }, "downloads": -1, "filename": "cImage-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f4f6ea7bda1e0ebe36a1a45a818b31cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7869, "upload_time": "2019-09-05T12:34:04", "url": "https://files.pythonhosted.org/packages/2c/fd/7d2e1cf53a6cd4ff8ec0c9338a74fcba902ce8287e1519c1d9494c7eb588/cImage-2.0.0-py3-none-any.whl" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "d8c27999a14c0f3b7b95681bc45d8e42", "sha256": "c1aa4050088b5027d8d10efddfdef7549640e60d904ce5f161237fe4ab49adb6" }, "downloads": -1, "filename": "cImage-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d8c27999a14c0f3b7b95681bc45d8e42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8615, "upload_time": "2019-09-05T12:44:03", "url": "https://files.pythonhosted.org/packages/99/7d/194241877836e48e3daaeded8fecd2fe966796aa6924eb171b7610f86bdd/cImage-2.0.1-py3-none-any.whl" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "e885bbb32cd01982df530e952bc29eb3", "sha256": "607f5eb4805d4939400bf28cd97c8d556f0b21c8e53d496dcc50afb481e4b6dd" }, "downloads": -1, "filename": "cImage-2.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e885bbb32cd01982df530e952bc29eb3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8619, "upload_time": "2019-09-05T13:10:01", "url": "https://files.pythonhosted.org/packages/b9/fa/8ad6f8847199294138c288333441c9714c0d518fbf216afc2d9d6a990481/cImage-2.0.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e885bbb32cd01982df530e952bc29eb3", "sha256": "607f5eb4805d4939400bf28cd97c8d556f0b21c8e53d496dcc50afb481e4b6dd" }, "downloads": -1, "filename": "cImage-2.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e885bbb32cd01982df530e952bc29eb3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8619, "upload_time": "2019-09-05T13:10:01", "url": "https://files.pythonhosted.org/packages/b9/fa/8ad6f8847199294138c288333441c9714c0d518fbf216afc2d9d6a990481/cImage-2.0.2-py3-none-any.whl" } ] }