{ "info": { "author": "Enrico Batista da Luz", "author_email": "rico.bl@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "django-thumbor\n==============\n\n.. image:: https://travis-ci.org/ricobl/django-thumbor.png?branch=master\n :target: https://travis-ci.org/ricobl/django-thumbor\n :alt: CI status on Travis CI\n\n.. image:: http://img.shields.io/pypi/v/django-thumbor.svg\n :target: https://pypi.python.org/pypi/django-thumbor/\n :alt: Latest django-thumbor PyPI version\n\n.. image:: https://img.shields.io/pypi/dm/django-thumbor.svg\n :target: https://pypi.python.org/pypi/django-thumbor/\n :alt: Number of downloads for django-thumbor on PyPI\n\n.. image:: https://coveralls.io/repos/ricobl/django-thumbor/badge.png?branch=master\n :target: https://coveralls.io/r/ricobl/django-thumbor?branch=master\n :alt: Code coverage on Coveralls\n\n.. image:: https://gemnasium.com/ricobl/django-thumbor.svg\n :target: https://gemnasium.com/ricobl/django-thumbor\n :alt: Dependency Status on Gemnasium\n\n\nA django application to resize images using the\n`thumbor `_ service.\n\nUsage\n-----\n\nBoth ``thumbor_url`` templatetag and the ``generate_url`` helper uses the same\narguments as `libthumbor `_, you can\ncheck the `wiki `_ for more info.\n\nOn templates:\n\n.. code-block:: html\n\n {% load thumbor_tags %}\n \n\n or\n\n {% load thumbor_tags %}\n \n\nIf you need the result in a template variable, use `assign_thumbor_url` instead.\n\n {% load thumbor_tags %}\n {% assign_thumbor_url '/media/image.jpg' width=300 as thumb_url %}\n \n\n**Filters**\n\nSplit `filters `_ with\n``:`` (or use a ``list`` object):\n\n.. code-block:: html\n\n {% load thumbor_tags %}\n \n \n\nOn code:\n\n.. code-block:: python\n\n from django_thumbor import generate_url\n resized = generate_url(\"/media/image.jpg\", width=300)\n\n\n**Re-using argument sets (aliases)**\n\nYou can re-use argument sets through globally defined aliases. This prevents\nrepeating thumbnail parameters all over the code and can improve thumbor\nperformance because thumbnails are re-used as well. If you're migrating\nfrom django-easy-thumbnails, you'll find the pattern very familiar, and it\nshould make porting much more straight-forward.\n\nOn templates:\n\n.. code-block:: html\n\n {% load thumbor_tags %}\n \n\nOn code:\n\n.. code-block:: python\n\n from django_thumbor import generate_url\n resized = generate_url(\"/media/image.jpg\", alias=\"thumb-square\")\n\nAnd in your ``settings.py``:\n\n.. code-block:: python\n\n THUMBOR_ALIASES = {\n 'thumb-square': {\n 'width': 300,\n 'height': 300,\n 'filters': ['brightness(10)']}\n }\n\n\n**Override server address**\n\nThere is an extra parameter to specify a custom server to be used instead of\n``settings.THUMBOR_SERVER``.\n\nOn templates:\n\n.. code-block:: html\n\n {% load thumbor_tags %}\n \n\nOn code:\n\n.. code-block:: python\n\n from django_thumbor import generate_url\n custom_server = \"http://localhost:8888/foo\"\n resized = generate_url(\n \"/media/image.jpg\", thumbor_server=custom_server, width=300)\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install django-thumbor\n\n\nConfiguration\n-------------\n\nAdd the app to the ``INSTALLED_APPS``:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n # ...\n 'django_thumbor',\n )\n\nHere are the default settings that you can override:\n\n.. code-block:: python\n\n # The host serving the thumbor resized images\n THUMBOR_SERVER = 'http://localhost:8888'\n\n # The prefix for the host serving the original images\n # This must be a resolvable address to allow thumbor to reach the images\n THUMBOR_MEDIA_URL = 'http://localhost:8000/media'\n\n # If you want the static to be handled by django thumbor\n # default as False, set True to handle it if you host your statics\n THUMBOR_STATIC_ENABLED = False\n\n # The prefix for the host serving the original static images\n # this must be a resolvable address to allow thumbor to reach the images\n THUMBOR_STATIC_URL = 'http://localhost:8000/static'\n\n # The same security key used in the thumbor service to\n # match the URL construction\n THUMBOR_SECURITY_KEY = 'MY_SECURE_KEY'\n\n # Default arguments passed to the `generate_url` helper or\n # the `thumbor_url` templatetag\n THUMBOR_ARGUMENTS = {}\n\n # An alias represents a named set of arguments to the generate_url function\n # or thumbor_url template tag. Use it to share general thumbnail\n # configurations without repeating yourself.\n THUMBOR_ALIASES = {}\n\n\nContributing\n------------\n\nInstall\n.......\n\nFork, clone, create a virtualenv and run:\n\n.. code-block:: bash\n\n git clone git://github.com/ricobl/django-thumbor.git\n mkvirtualenv django-thumbor\n make install\n\nTest\n....\n\nAdd tests on ``testproject/tests``, add code and run:\n\n.. code-block:: bash\n\n make test\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/ricobl/django-thumbor/", "keywords": "", "license": "django-thumbor is licensed under the MIT license. For more information, please see LICENSE file.", "maintainer": "", "maintainer_email": "", "name": "django-thumbor", "package_url": "https://pypi.org/project/django-thumbor/", "platform": "", "project_url": "https://pypi.org/project/django-thumbor/", "project_urls": { "Homepage": "http://github.com/ricobl/django-thumbor/" }, "release_url": "https://pypi.org/project/django-thumbor/0.5.7/", "requires_dist": null, "requires_python": "", "summary": "A django application to resize images using the thumbor service", "version": "0.5.7" }, "last_serial": 3405675, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0b44910d2a8be705ea7b2cd67b92ac59", "sha256": "cce0e11d2101c62d27705f9ca4b912c9c9589e45493128e2076c484d11655140" }, "downloads": -1, "filename": "django-thumbor-0.1.tar.gz", "has_sig": false, "md5_digest": "0b44910d2a8be705ea7b2cd67b92ac59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2088, "upload_time": "2012-12-16T21:46:19", "url": "https://files.pythonhosted.org/packages/76/bf/5a8b5f5be47569426350eaecb11f2ae6a41d9101a63ea4bd18ff1440ce5d/django-thumbor-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "eba6cdb4e3c4cded67b66a224e10ce3c", "sha256": "da127e3859e226b14225718b8c7d1565034586e02864107ff747f1973d82eff2" }, "downloads": -1, "filename": "django-thumbor-0.2.tar.gz", "has_sig": false, "md5_digest": "eba6cdb4e3c4cded67b66a224e10ce3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2366, "upload_time": "2012-12-16T23:19:21", "url": "https://files.pythonhosted.org/packages/e0/b7/1eadbcaaaa316e37d6656f274695fba0dd39976841b8419ceeeb8da648c5/django-thumbor-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4c34711f89e0260bb13499dad7355317", "sha256": "cb4165bf6e4b740d75d13decb8b9965785a9752a7c5fe77e64c6e421a1da3605" }, "downloads": -1, "filename": "django-thumbor-0.3.tar.gz", "has_sig": false, "md5_digest": "4c34711f89e0260bb13499dad7355317", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2763, "upload_time": "2013-05-10T00:53:59", "url": "https://files.pythonhosted.org/packages/cc/aa/b7c2d42d58beda8c9be2499cd987f75cc36d3669d5f9d7dbae6afdc448b4/django-thumbor-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "20f3b40baa3c752f9fbaa7a8f9fc6b5c", "sha256": "8e76efcc52dbba425f8e1989d6975a0b91ed3cce6d988675a7ecbd315b7aea6e" }, "downloads": -1, "filename": "django-thumbor-0.4.tar.gz", "has_sig": false, "md5_digest": "20f3b40baa3c752f9fbaa7a8f9fc6b5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3002, "upload_time": "2013-12-03T15:35:05", "url": "https://files.pythonhosted.org/packages/8a/73/6b5b0899a71a8e958b11c1708551dea177ff2e3a9c4ef6ddb2d70fb0c921/django-thumbor-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "c8c16bfbed6a8c8af38fae43d468c069", "sha256": "bba529cc1e9790caeb1f3720e8f5804edf1439174279b1a20bb5f51f1bd154a6" }, "downloads": -1, "filename": "django-thumbor-0.5.tar.gz", "has_sig": false, "md5_digest": "c8c16bfbed6a8c8af38fae43d468c069", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3485, "upload_time": "2014-04-08T04:05:43", "url": "https://files.pythonhosted.org/packages/90/77/a2739a9d0cc43b6f702d0eebe8eac98d88a1e0380494ebcea35ce975e510/django-thumbor-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "e369ed5b0a716199ee8329b2a7d5a687", "sha256": "ba72c8f2133ef2be925f0cbb67c42867541e43646ffff1f91b43a41ba0009af7" }, "downloads": -1, "filename": "django-thumbor-0.5.1.tar.gz", "has_sig": false, "md5_digest": "e369ed5b0a716199ee8329b2a7d5a687", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3544, "upload_time": "2016-04-12T12:54:01", "url": "https://files.pythonhosted.org/packages/79/1a/787b5f7b494f3c8361cb24171e4125b341a0fbf3e3adf83733e37eaa383a/django-thumbor-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "b8ff8f6dcde2f5a6d6230a5de34eda8a", "sha256": "77abe6691eabce0a108e93ffe5a1a68c5e264b24ba8e56a85c3092b2972a413e" }, "downloads": -1, "filename": "django-thumbor-0.5.2.tar.gz", "has_sig": false, "md5_digest": "b8ff8f6dcde2f5a6d6230a5de34eda8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3604, "upload_time": "2016-06-08T13:41:09", "url": "https://files.pythonhosted.org/packages/be/95/5bf3fa38356e279c9f0c07401c03a08b3d3517ace73dd2074b38964f6d51/django-thumbor-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "4123237ce193dff82b956944d1db5905", "sha256": "4298f4e78b063d1dac44fe169b1ce41e7632ab6f18051b406de6e260881cb0e1" }, "downloads": -1, "filename": "django-thumbor-0.5.3.tar.gz", "has_sig": false, "md5_digest": "4123237ce193dff82b956944d1db5905", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2016-07-16T22:21:36", "url": "https://files.pythonhosted.org/packages/c6/47/617a2ddf5ff9a7ba849dc27147bd901dfd63420c53da3fc8b3827c3a2fd7/django-thumbor-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "b4aea9a84e55ea43ccb92c6d414fd8dd", "sha256": "1642ece4975509df9535c3ce4627bad01bdf82c0b7438a05676e51e193ef45a3" }, "downloads": -1, "filename": "django-thumbor-0.5.4.tar.gz", "has_sig": false, "md5_digest": "b4aea9a84e55ea43ccb92c6d414fd8dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3941, "upload_time": "2016-09-02T16:24:46", "url": "https://files.pythonhosted.org/packages/8e/f9/b73f92accf5ef50b0e90414641991c6a3ad89e9d85af2c2762ad65306009/django-thumbor-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "8517ab7852ad80ccb74654220808beaf", "sha256": "717bb1809a140afa817a68be101c2da427a90ea096b2bd9415f1b125c7e81f5c" }, "downloads": -1, "filename": "django-thumbor-0.5.5.tar.gz", "has_sig": false, "md5_digest": "8517ab7852ad80ccb74654220808beaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4773, "upload_time": "2016-10-24T22:51:56", "url": "https://files.pythonhosted.org/packages/c7/1e/8568a12602339f3040c016482e9789f1e8d2e2c6a882d6945102be26a63b/django-thumbor-0.5.5.tar.gz" } ], "0.5.6": [ { "comment_text": "", "digests": { "md5": "1054c19fe46eb5d449a0b66138a02dbb", "sha256": "1b917d1203ef7e0ea905a9331dc569c39002b50746792cf570f0c94e1bcb60da" }, "downloads": -1, "filename": "django-thumbor-0.5.6.tar.gz", "has_sig": false, "md5_digest": "1054c19fe46eb5d449a0b66138a02dbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4739, "upload_time": "2016-10-25T11:30:25", "url": "https://files.pythonhosted.org/packages/58/c3/17f677a4caa3ddfa9a051e8434bfcece8abc716ed2db12ef8a71ad50b2b6/django-thumbor-0.5.6.tar.gz" } ], "0.5.7": [ { "comment_text": "", "digests": { "md5": "c06818e7e274a92c5f53aac44eb52bf0", "sha256": "7e68c5f5c3da6246c9da37951e65796eb6afdf7d9181eab6dc4cc837e25b53a2" }, "downloads": -1, "filename": "django-thumbor-0.5.7.tar.gz", "has_sig": false, "md5_digest": "c06818e7e274a92c5f53aac44eb52bf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4808, "upload_time": "2017-12-10T16:34:38", "url": "https://files.pythonhosted.org/packages/8e/ac/ed063f752af2cd6644fab8bd3e2777bf058dbce4abd727a235990585fe66/django-thumbor-0.5.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c06818e7e274a92c5f53aac44eb52bf0", "sha256": "7e68c5f5c3da6246c9da37951e65796eb6afdf7d9181eab6dc4cc837e25b53a2" }, "downloads": -1, "filename": "django-thumbor-0.5.7.tar.gz", "has_sig": false, "md5_digest": "c06818e7e274a92c5f53aac44eb52bf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4808, "upload_time": "2017-12-10T16:34:38", "url": "https://files.pythonhosted.org/packages/8e/ac/ed063f752af2cd6644fab8bd3e2777bf058dbce4abd727a235990585fe66/django-thumbor-0.5.7.tar.gz" } ] }