{ "info": { "author": "Andreas Bunkahle", "author_email": "abunkahle@t-online.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# numpy2gif\nPython library to convert single and multiple numpy images to a gif image without PIL or pillow. OpenCV does not support gif images. This a fork of array2gif from Tanya Schlusser found at:\nhttps://github.com/tanyaschlusser/array2gif\n\nInstall it with \n\n setup.py install\n \nor with\n\n pip install numpy2gif\n \n# Usage\n\nYou can use the library this way:\n\n from __future__ import print_function\n from numpy2gif import write_gif\n import cv2\n images = [cv2.cvtColor(cv2.imread(\"Images/number\"+str(i)+\".bmp\"), cv2.COLOR_BGR2RGB) for i in range(1, 5)]\n print(type(images[0]))\n print(images[0].shape, images[0].dtype)\n write_gif(images, \"countdown.gif\", fps=3)\n write_gif(images[0], \"one.gif\")\n\nTry a backward test from converting a gif to numpy frames with the external module gif2numpy and back to a multiple gif image with numpy2gif:\n\n from __future__ import print_function\n from gif2numpy import convert\n from numpy2gif import write_gif\n import cv2\n\n image = \"Images/Rotating_earth.gif\"\n frames, exts, image_specs = convert(image, BGR2RGB=False)\n print(\"len(frames), len(exts), exts[0]['delay_time']\", len(frames), len(exts), exts[0]['delay_time'])\n write_gif(frames, 'Rotating_earth_new.gif', fps=12)\n write_gif(frames[0], 'earth.gif')\n \n# Version history\n\n1.0: first release\n\n# Dependencies\n\nYou need to install numpy by:\n\n pip install numpy", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bunkahle/numpy2gif", "keywords": "GIF Converter from Numpy to GIF", "license": "BSD 3", "maintainer": "", "maintainer_email": "", "name": "numpy2gif", "package_url": "https://pypi.org/project/numpy2gif/", "platform": "any", "project_url": "https://pypi.org/project/numpy2gif/", "project_urls": { "Homepage": "https://github.com/bunkahle/numpy2gif" }, "release_url": "https://pypi.org/project/numpy2gif/1.0/", "requires_dist": null, "requires_python": "", "summary": "Convert single and multiple numpy images to a gif image without PIL or pillow", "version": "1.0" }, "last_serial": 5191473, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "341c1312ef675a85c5d9abb449fd7724", "sha256": "bf1be17e018005a4b0a91669fd68da1a789f3c3de9bc58f27d8f83380b9477f2" }, "downloads": -1, "filename": "numpy2gif-1.0.zip", "has_sig": false, "md5_digest": "341c1312ef675a85c5d9abb449fd7724", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8617, "upload_time": "2019-04-26T07:38:56", "url": "https://files.pythonhosted.org/packages/24/32/30898c9742f37147b3d8d3f1020e5d9d544a52920aa3ccbd6b90f1b79eb5/numpy2gif-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "341c1312ef675a85c5d9abb449fd7724", "sha256": "bf1be17e018005a4b0a91669fd68da1a789f3c3de9bc58f27d8f83380b9477f2" }, "downloads": -1, "filename": "numpy2gif-1.0.zip", "has_sig": false, "md5_digest": "341c1312ef675a85c5d9abb449fd7724", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8617, "upload_time": "2019-04-26T07:38:56", "url": "https://files.pythonhosted.org/packages/24/32/30898c9742f37147b3d8d3f1020e5d9d544a52920aa3ccbd6b90f1b79eb5/numpy2gif-1.0.zip" } ] }