{ "info": { "author": "Jason Christa", "author_email": "jason@zeitcode.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "License :: OSI Approved :: BSD License", "Programming Language :: Python" ], "description": "Django Resizer\n==============\n\nDjango Resizer allows images to be dynamically resized and/or cropped through a URL. This is very useful when you have a third-party \"hot-linking\" your images and they won't have access to template tag to dynamically resize images like [easy-thumbnails](https://github.com/SmileyChris/easy-thumbnails) or [sorl-thumbnail](https://github.com/sorl/sorl-thumbnail) provides.\n\nInstallation\n------------\n\nRun `pip install django-resizer`\n\nAdd `resizer` to your `INSTALLED_APPS` setting:\n\n```python\nINSTALLED_APPS = (\n ...\n 'resizer',\n)\n```\n\nTo your sites `url.py` add:\n\n```python\nurlpatterns = patterns('',\n ...\n url(r'^resizer/(?P.*)/$', 'resizer.views.resize', name='image_resize'),\n)\n```\n\nUsage\n-----\n\nThe resizing and cropping capabilities rely on the easy-thumbnails app.\n\nTo resize an image with a height and width of no more than 50px and with the image ratio perserved:\n\n`/resizer/images/picture.jpg?size=50,50`\n\nThe path after `/resizer` should be the path to the image from your settings `MEDIA_ROOT`. The query string should be `size=[width],[height]`.\n\nTo resize an image to have a height and width of extactly 50px:\n\n`/resizer/images/picture.jpg?size=50,50&crop=smart`", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/nextscreenlabs/django-resizer", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-resizer", "package_url": "https://pypi.org/project/django-resizer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-resizer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/nextscreenlabs/django-resizer" }, "release_url": "https://pypi.org/project/django-resizer/1.0/", "requires_dist": null, "requires_python": null, "summary": "A Django app for fetching resized and/or cropped images through a url.", "version": "1.0" }, "last_serial": 831169, "releases": { "0.1.1a5": [ { "comment_text": "", "digests": { "md5": "c628fcfca2192f39d12a89804bf66628", "sha256": "700eb762431b92ccad79dcfd1fc56a4cd8b49acdc58f33d061849818050d4944" }, "downloads": -1, "filename": "django-resizer-0.1.1a5.zip", "has_sig": false, "md5_digest": "c628fcfca2192f39d12a89804bf66628", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6869, "upload_time": "2012-11-02T21:15:30", "url": "https://files.pythonhosted.org/packages/20/55/afd9c5489adeafce4a630c6b6b97698fb4cffc64558300aabec22acb89c0/django-resizer-0.1.1a5.zip" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "8a38066c5a0b05058f1da7459e7f94ed", "sha256": "d8c627b6364fc26a393bd5e1692b315f4b71ef49bb52467351a7bd6aceae4314" }, "downloads": -1, "filename": "django-resizer-1.0.zip", "has_sig": false, "md5_digest": "8a38066c5a0b05058f1da7459e7f94ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7992, "upload_time": "2013-08-02T21:09:43", "url": "https://files.pythonhosted.org/packages/fe/e3/f50dd27172205d88ed1c8c18ec27bf18215cd106e0be041f252bb0d8bca0/django-resizer-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8a38066c5a0b05058f1da7459e7f94ed", "sha256": "d8c627b6364fc26a393bd5e1692b315f4b71ef49bb52467351a7bd6aceae4314" }, "downloads": -1, "filename": "django-resizer-1.0.zip", "has_sig": false, "md5_digest": "8a38066c5a0b05058f1da7459e7f94ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7992, "upload_time": "2013-08-02T21:09:43", "url": "https://files.pythonhosted.org/packages/fe/e3/f50dd27172205d88ed1c8c18ec27bf18215cd106e0be041f252bb0d8bca0/django-resizer-1.0.zip" } ] }