{ "info": { "author": "Mark Paschal", "author_email": "markpasc@markpasc.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Multimedia :: Graphics" ], "description": "==========\nimagefacts\n==========\n\nimagefacts discovers the screen dimensions of the commonest image formats from\na URL or a bytestring.\n\n\nInstallation\n============\n\nInstall the latest imagefacts from PyPI::\n\n $ pip install imagefacts\n # or\n $ easy_install imagefacts\n\n\nUsage\n=====\n\nUse the `imagefacts.facts()` function to find an image's dimensions::\n\n >>> import imagefacts\n >>> imagefacts.facts(open('localfile.jpg').read()) # byte string\n ('image/jpeg', 1024, 768)\n >>> imagefacts.facts(open('localfile.jpg')) # file object\n ('image/jpeg', 1024, 768)\n >>> imagefacts.facts('localfile.jpg') # file name\n ('image/jpeg', 1024, 768)\n >>> imagefacts.facts('http://example.com/image') # URL\n ('image/png', 400, 476)\n >>>\n\nYou can also use imagefacts from the command line::\n\n $ python -m imagefacts http://example.com/image\n ('image/png', 400, 476)\n $\n\n\nContributors\n============\n\nPortions of imagefacts are from the feedparser project by Mark Pilgrim and\nbfg-pages by zutesmog. Thanks!", "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/markpasc/imagefacts", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "imagefacts", "package_url": "https://pypi.org/project/imagefacts/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/imagefacts/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/markpasc/imagefacts" }, "release_url": "https://pypi.org/project/imagefacts/1.1/", "requires_dist": null, "requires_python": null, "summary": "Find out the screen dimensions of the commonest image formats from a URL or bytestring", "version": "1.1" }, "last_serial": 656073, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "049729a4b2da591f68dc234e74b2d8ae", "sha256": "a97d709ec85b1b58fbfc4fe50e427f8d36838109b5cd87f76c0eef9373acb49e" }, "downloads": -1, "filename": "imagefacts-1.0.tar.gz", "has_sig": false, "md5_digest": "049729a4b2da591f68dc234e74b2d8ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4326, "upload_time": "2011-11-11T20:04:02", "url": "https://files.pythonhosted.org/packages/5e/b6/2c05f838204fa7822e996428174cb33fa1ae89371145aca47afb5338c29d/imagefacts-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "a30d0ce02df23d30949f4fd41ba47cfc", "sha256": "bfc626e1056e6247f24320263ac22b78f54c087dc4bffd8a769d73d6cae73d44" }, "downloads": -1, "filename": "imagefacts-1.1.tar.gz", "has_sig": false, "md5_digest": "a30d0ce02df23d30949f4fd41ba47cfc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4863, "upload_time": "2011-11-15T22:30:27", "url": "https://files.pythonhosted.org/packages/16/f2/b1bf3a2ab475a3c08d4ecb8a02c47fc7083f27cb3f4b9cca113665229740/imagefacts-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a30d0ce02df23d30949f4fd41ba47cfc", "sha256": "bfc626e1056e6247f24320263ac22b78f54c087dc4bffd8a769d73d6cae73d44" }, "downloads": -1, "filename": "imagefacts-1.1.tar.gz", "has_sig": false, "md5_digest": "a30d0ce02df23d30949f4fd41ba47cfc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4863, "upload_time": "2011-11-15T22:30:27", "url": "https://files.pythonhosted.org/packages/16/f2/b1bf3a2ab475a3c08d4ecb8a02c47fc7083f27cb3f4b9cca113665229740/imagefacts-1.1.tar.gz" } ] }