{ "info": { "author": "Michael Hansen", "author_email": "hansen.mike@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "============\nImage novice\n============\n\nA special Python image submodule for beginners.\n\nDescription\n===========\n\nimage_novice is a simple wrapper around the Python Image Library (PIL) for\nbeginners. It allows for easy loading, manipulating, and saving of image\nfiles.\n\n**NOTE: This module uses the Cartesian coordinate system!**\n\nExample\n=======\n\n::\n\n >>> import image_novice as novice # special submodule for beginners\n\n >>> picture = novice.open('sample.png') # create a picture object from a file\n >>> print picture.format # pictures know their format...\n 'png'\n >>> print picture.path # ...and where they came from...\n '/Users/example/sample.png'\n >>> print picture.size # ...and their size\n (665, 500)\n >>> print picture.width # 'width' and 'height' also exposed\n 665\n >>> picture.size = (200, 250) # changing size automatically resizes\n >>> for pixel in picture: # can iterate over pixels\n >>> ... if ((pixel.red > 128) and # pixels have RGB (values are 0-255)...\n >>> ... (pixel.x < picture.width)): # ...and know where they are\n >>> ... pixel.red /= 2 # pixel is an alias into the picture\n >>> ...\n >>> print picture.modified # pictures know if their pixels are dirty\n True\n >>> print picture.path # picture no longer corresponds to file\n None\n >>> picture[0:20, 0:20] = (0, 0, 0) # overwrite lower-left rectangle with black\n >>> picture.save('sample-bluegreen.jpg') # guess file type from suffix\n >>> print picture.path # picture now corresponds to file\n '/Users/example/sample-bluegreen.jpg'\n >>> print picture.format # ...has a different format\n jpeg\n >>> print picture.modified # and is now in sync\n False", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/image_novice/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "image_novice", "package_url": "https://pypi.org/project/image_novice/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/image_novice/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/image_novice/" }, "release_url": "https://pypi.org/project/image_novice/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "A special Python image submodule for beginners.", "version": "0.1.3" }, "last_serial": 966910, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "33b1f5072a77b1d4e80ec3b26af678b6", "sha256": "8fd965a13924f6454b2b5d35133378edc3f93fdf9d344f8f9dc6a8b614f5cb7b" }, "downloads": -1, "filename": "image_novice-0.1.0.tar.gz", "has_sig": false, "md5_digest": "33b1f5072a77b1d4e80ec3b26af678b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15634, "upload_time": "2013-10-09T21:01:36", "url": "https://files.pythonhosted.org/packages/88/16/f735f501b529269a8a792a8f751945ba87c658eb39484c67afbeeb02f2c0/image_novice-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ffc252f35dce1a0e880ed79e445920ea", "sha256": "9fc788153b65e07ce343ba1efd772df40a64c091892d410426748e209f81e988" }, "downloads": -1, "filename": "image_novice-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ffc252f35dce1a0e880ed79e445920ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16247, "upload_time": "2013-10-10T14:16:21", "url": "https://files.pythonhosted.org/packages/60/67/86646f3b76cb65cbe3098d70918cfa7c4577ee69c277a0dca931baee0e9f/image_novice-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "81af4eded8a68f2e3e43f4dc74478f09", "sha256": "f86811fed41638c84ab1428e6ece461cdc6ed004dc42da88302bbd7206d5c873" }, "downloads": -1, "filename": "image_novice-0.1.2.tar.gz", "has_sig": false, "md5_digest": "81af4eded8a68f2e3e43f4dc74478f09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16190, "upload_time": "2014-01-04T19:25:39", "url": "https://files.pythonhosted.org/packages/d7/21/7b5555d77e24bf94d4b04b5c49075164a60a19b7752d5d2ff256b8935e8e/image_novice-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "6469ab80b113c35d097b1ab85d7299bc", "sha256": "ea242a3a3fd0842b4dc81bdae3f8e23575092c44b751c2cff26260faaace44ce" }, "downloads": -1, "filename": "image_novice-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6469ab80b113c35d097b1ab85d7299bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16765, "upload_time": "2014-01-13T01:33:16", "url": "https://files.pythonhosted.org/packages/d6/be/be7e35d57567c1a15c02bd2946b0960ca18118768e930865a3fae3161aae/image_novice-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6469ab80b113c35d097b1ab85d7299bc", "sha256": "ea242a3a3fd0842b4dc81bdae3f8e23575092c44b751c2cff26260faaace44ce" }, "downloads": -1, "filename": "image_novice-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6469ab80b113c35d097b1ab85d7299bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16765, "upload_time": "2014-01-13T01:33:16", "url": "https://files.pythonhosted.org/packages/d6/be/be7e35d57567c1a15c02bd2946b0960ca18118768e930865a3fae3161aae/image_novice-0.1.3.tar.gz" } ] }