{ "info": { "author": "sanjonemu", "author_email": "sanjo_nemu@yahoo.co.jp", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "pybmp\n=====\n\nBMP image handler for Python (to numpy ndarray or PIL) native C .pyd\n\nHow to use\n----------\n\n::\n\n from pybmp import bmp\n import numpy as np\n import matplotlib.pyplot as plt\n # import matplotlib.image as mpimg\n from scipy import misc\n from PIL import Image\n\n fig = plt.figure()\n axis = [fig.add_subplot(211 + _) for _ in range(2)]\n img = Image.open('../res/cs_checker_7x5_24.bmp') # R,G,B\n # fake convert to ubytes img:R,G,B -> s:R,G,B,FF -> im:B,G,R,A -> bm:B,G,R,A\n nda = np.array(img)\n r, c, m = nda.shape\n s = img.tostring('raw', 'RGBX') # append A as FF\n im = Image.fromstring('RGBA', (c, r), s, 'raw', 'BGRA') # fake to B,G,R,A\n bm = np.array(im) # fake to B,G,R,A\n axis[0].imshow(nda)\n bmp.BMP(bm, fn='/tmp/cs_checker_out_.bmp')\n # plt.show()\n\nLinks\n-----\n\ngithub https://github.com/sanjonemu/pybmp\n\npybmp https://pypi.python.org/pypi/pybmp\n\nLicense\n-------\n\nMIT License", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sanjonemu/pybmp", "keywords": "BMP,matplotlib,scipy,numpy,PIL,image,bitmap", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "pybmp", "package_url": "https://pypi.org/project/pybmp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pybmp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sanjonemu/pybmp" }, "release_url": "https://pypi.org/project/pybmp/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "BMP image handler for Python (to numpy ndarray or PIL) native C .pyd", "version": "1.0.1" }, "last_serial": 2444112, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "a4b5fd4cdebc10a79f36dbe1dce8e54f", "sha256": "4b64d3513b72ab221c5b43dd57a073304b17a0ed2833c62c8a8c735ea43e3779" }, "downloads": -1, "filename": "pybmp-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a4b5fd4cdebc10a79f36dbe1dce8e54f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9270, "upload_time": "2016-11-05T13:05:12", "url": "https://files.pythonhosted.org/packages/9c/22/f80f65d5238a0e8c894a36b43ba77a3e68667450d8329592b15c42bf02ea/pybmp-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a4b5fd4cdebc10a79f36dbe1dce8e54f", "sha256": "4b64d3513b72ab221c5b43dd57a073304b17a0ed2833c62c8a8c735ea43e3779" }, "downloads": -1, "filename": "pybmp-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a4b5fd4cdebc10a79f36dbe1dce8e54f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9270, "upload_time": "2016-11-05T13:05:12", "url": "https://files.pythonhosted.org/packages/9c/22/f80f65d5238a0e8c894a36b43ba77a3e68667450d8329592b15c42bf02ea/pybmp-1.0.1.tar.gz" } ] }