{ "info": { "author": "Alexander Tereshkin", "author_email": "atereshkin@invitebox.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Topic :: Software Development" ], "description": "=======================\ndjango-image-dimensions\n=======================\n\nAutomatically add dimension attributes to all <img> tags in a response to improve rendering speed on the client.\n\n---------\nRationale\n---------\n\nSpecifying image dimensions in HTML improves both percieved and actual client-side rendering performance by preventing reflow. However, maintaining explicit dimensions in templates is tedious and impractical in some cases. This middleware solves that in a plug-and-play manner by automatically setting dimensions in all &img& tags in a response.\n\n------------\nRequirements\n------------\n\n* `django-celery` to run image fetch and dimensions calculations in the background\n* `PIL`\n* A cache that is shared between web server and celery (e.g. memcached)\n\n------------\nInstallation\n------------\n1. Run `pip install django-image-dimensions`\n2. Add `'imagedimensions'` app to `INSTALLED_APPS` \n\n-----\nUsage\n-----\nFor a quick test-drive add `'imagedimensions.middleware.ImageDimensionsMiddleware'` to `MIDDLEWARE_CLASSES`. \nHowever, this is not suitable for production use as it adds an overhead to every request. For production, replace `{% load cache %}` in your templates with `{% load imgdimensions %}`.", "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/InviteBox/django-image-dimensions", "keywords": "django images performance", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-image-dimensions", "package_url": "https://pypi.org/project/django-image-dimensions/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-image-dimensions/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/InviteBox/django-image-dimensions" }, "release_url": "https://pypi.org/project/django-image-dimensions/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Automatically add dimension attributes to all tags in a response to improve rendering speed on the client.", "version": "0.0.4" }, "last_serial": 789851, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9e6daffefa657c99af832c1cf60423c9", "sha256": "ccf4761ce11d1ea94bb85ffe9048fd70a25ac1b9ded02e62f55a49cccb5ec717" }, "downloads": -1, "filename": "django_image_dimensions-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "9e6daffefa657c99af832c1cf60423c9", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6542, "upload_time": "2012-12-20T16:59:05", "url": "https://files.pythonhosted.org/packages/26/c8/db42f72ecc69d3b9992bb200942d7b6b0aadadf084e62f51a2b020990eee/django_image_dimensions-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "c510ba564740e62e6d510eb33752f8a1", "sha256": "deeb6e923bfc7839dbdb07847c24b2ab14951b2ba805dc16156bf5af825578f1" }, "downloads": -1, "filename": "django-image-dimensions-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c510ba564740e62e6d510eb33752f8a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2789, "upload_time": "2012-12-20T16:59:11", "url": "https://files.pythonhosted.org/packages/37/12/f351834baa99b4aeaa8f2512e8eeb07c57d096cff7f4e1fcab42d0fc961c/django-image-dimensions-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5b5a6edc3f3bcdc910b80290e70200b1", "sha256": "b7c3d8be39db6ac7527a0cd7cfec9175dc99d6754f82239a5140875a42c222d9" }, "downloads": -1, "filename": "django_image_dimensions-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "5b5a6edc3f3bcdc910b80290e70200b1", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6565, "upload_time": "2012-12-21T07:56:56", "url": "https://files.pythonhosted.org/packages/fa/f0/f7bf716a0c5ea290f9e4ebdc8eba825397ace5b2b9714412702b8333922b/django_image_dimensions-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "18ad8c2c102acc6cb8462797fe501532", "sha256": "4e5612f362786c65cec2df5dac9fb03e683a3ebbc25d83bdf724983849389735" }, "downloads": -1, "filename": "django-image-dimensions-0.0.2.tar.gz", "has_sig": false, "md5_digest": "18ad8c2c102acc6cb8462797fe501532", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2772, "upload_time": "2012-12-21T07:57:01", "url": "https://files.pythonhosted.org/packages/4b/be/e432d6575476aa9fb12eac8cdcdc1e13706e4e204a30c34d49fece0b9b2c/django-image-dimensions-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "82bca623e911864fff381122d7739a78", "sha256": "fd9c16b1ba0a734cb3476ff6e0884a51b8517150aaf2dfaa7167192aea369203" }, "downloads": -1, "filename": "django_image_dimensions-0.0.3-py2.7.egg", "has_sig": false, "md5_digest": "82bca623e911864fff381122d7739a78", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 7165, "upload_time": "2012-12-29T12:34:25", "url": "https://files.pythonhosted.org/packages/6c/f2/36f6cb10067ef9bc703fd502d716b86bfb7de80174acef94f6ee8ab8a4d3/django_image_dimensions-0.0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a125928f8581f9c32dd17f5e7c0f4694", "sha256": "f6e98e82f351896d9f6111b4b5b859c2a4990ed389530864af5b1c15b6c7f1d2" }, "downloads": -1, "filename": "django-image-dimensions-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a125928f8581f9c32dd17f5e7c0f4694", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3038, "upload_time": "2012-12-29T12:34:18", "url": "https://files.pythonhosted.org/packages/b4/27/d767a98eb75a6dadf490a991107c5127a214a9dfd9c71af6f93898b1d7b1/django-image-dimensions-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "dd0d2f3494620305fd91410522f40610", "sha256": "8ea669759d5b660c1cb79409caa4de4e22228ea9c64ddabdcedd6f5cf5af41c0" }, "downloads": -1, "filename": "django-image-dimensions-0.0.4.tar.gz", "has_sig": false, "md5_digest": "dd0d2f3494620305fd91410522f40610", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3791, "upload_time": "2013-04-15T13:59:17", "url": "https://files.pythonhosted.org/packages/1b/c9/08a42ab8b2a3ecba0f90444ebcd0fb4872e73a4f4d2a5f56b9e0b31de6e4/django-image-dimensions-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd0d2f3494620305fd91410522f40610", "sha256": "8ea669759d5b660c1cb79409caa4de4e22228ea9c64ddabdcedd6f5cf5af41c0" }, "downloads": -1, "filename": "django-image-dimensions-0.0.4.tar.gz", "has_sig": false, "md5_digest": "dd0d2f3494620305fd91410522f40610", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3791, "upload_time": "2013-04-15T13:59:17", "url": "https://files.pythonhosted.org/packages/1b/c9/08a42ab8b2a3ecba0f90444ebcd0fb4872e73a4f4d2a5f56b9e0b31de6e4/django-image-dimensions-0.0.4.tar.gz" } ] }