{
"info": {
"author": "Thiago Pisani",
"author_email": "pisani.thiago@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7"
],
"description": "=================\ndjango-thumborize\n=================\n\n.. image:: https://api.travis-ci.org/tpisani/django-thumborize.svg\n\nMinimal interface for `thumbor `_ imaging service.\n\n\nFeatures\n========\n\nEasy thumbor URLs\n-----------------\n\nEasily build thumbor URLs with arguments and filters by calling simple functions.\n\n\nDefault filters\n---------------\n\nSet default filters to be used on thumborized URLs.\nThese filters can be overridden by any calls that specify the same filters with different parameters.\n\n\nFlexible filters specification\n------------------------------\n\nFilters can be either a string delimited by ``:``, a ``list`` or ``dict``. See usage for more.\n\n\nChaining\n--------\n\nEasy, queryset like chaining for applying filters and resizing.\n\n\n*For a full list of available filters, check* `thumbor's wiki `_.\n\n\nUsage\n=====\n\n.. code:: python\n\n from thumborize import ThumborURL\n\n # Filters as string.\n thumbor_url = ThumborURL(\"http://path/to/image.png\", width=320,\n filters=\"quality(80):grayscale()\")\n\n # Filters as list.\n thumbor_url = ThumborURL(\"http://path/to/image.png\", width=320,\n filters=[\"quality(80)\", \"grayscale()\"])\n\n # Filters as dict.\n thumbor_url = ThumborURL(\"http://path/to/image.png\", width=320,\n filters={\n \"quality\": \"(80)\",\n \"grayscale\": \"()\",\n })\n\n thumbor_url.generate()\n 'http://localhost:8888/JiuVg9d5Mry_kw4odvb5Zh1C_BY=/320x0/filters:quality(80):grayscale()/http://path/to/image.png'\n\n\nChaining\n--------\n\n.. code:: python\n\n from thumborize import ThumborURL\n\n thumbor_url = ThumborURL(\"http://path/to/image.png\")\n\n small_gray_image = thumbor_url.grayscale().resize(width=100, height=100)\n\n small_gray_image.generate()\n 'http://localhost:8888/RFsfJakG9BsJUcbY2l1M6D5tthQ=/100x100/filters:grayscale()/http://path/to/image.png'\n\n low_quality_image = thumbor_url.quality(40).width(200)\n 'http://localhost:8888/SB1ILIArmGzsd90-Mz-TxJVHwqI=/200x0/filters:quality(40)/http://path/to/image.png'\n\n # Original ThumborURL instance.\n thumbor_url.generate()\n 'http://localhost:8888/O0Zqo6DMqqXHORdYncuspoaJlr0=/http://path/to/image.png'\n\n\nShortcut\n--------\n\n.. code:: python\n\n import thumborize\n\n thumborize.url(\"http://path/to/image.png\", width=320, height=300)\n 'http://localhost:8888/DYStA-Xwisc37dVz7bdXZ3u63QI=/320x300/http://path/to/image.png'\n\n\nTemplates\n---------\n\n.. code:: html\n\n {% load thumborize %}\n\n \n
\n\n \n
\n\n\nInstallation\n============\n\nInstall using **pip**:\n\n::\n\n $ pip install django-thumborize\n\n\nIn order to use **django-thumborize** templatetags, you must add the app to ``INSTALLED_APPS``:\n\n.. code:: python\n\n INSTALLED_APPS = (\n # Other django apps..\n \"thumborize\", # Any order is fine.\n )\n\n\nConfigure basic thumbor settings:\n\n.. code:: python\n\n # Thumbor host URL.\n THUMBOR_SERVER = \"http://localhost:8888/\"\n\n # This key must be the same used in thumbor\n # host to build safe URLs correctly.\n THUMBOR_SECURITY_KEY = \"MY_SECURE_KEY\"\n\n # Default filters are optional.\n THUMBOR_DEFAULT_FILTERS = {\n \"quality\": \"(80)\",\n \"grayscale\": \"()\",\n }\n\n\nTesting\n=======\n\n\nInstall\n-------\n\nFirst clone the repository, then run ``make install`` to install dev requirements.\n\n\nRun tests\n---------\n\nRun ``make test`` to run tests.\n",
"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/tpisani/django-thumborize",
"keywords": null,
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "django-thumborize",
"package_url": "https://pypi.org/project/django-thumborize/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/django-thumborize/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/tpisani/django-thumborize"
},
"release_url": "https://pypi.org/project/django-thumborize/1.0/",
"requires_dist": null,
"requires_python": null,
"summary": "Minimal interface for thumbor imaging service",
"version": "1.0"
},
"last_serial": 1277268,
"releases": {
"0.0.1": [],
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "4e74c863ab317287e9723ad212dc1364",
"sha256": "32f093abf0ef586ad4dcd8a60a79b6b56ab9d81ccd5f9d4477f8c6c181c6eee9"
},
"downloads": -1,
"filename": "django-thumborize-0.1.tar.gz",
"has_sig": false,
"md5_digest": "4e74c863ab317287e9723ad212dc1364",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4020,
"upload_time": "2014-09-22T03:22:08",
"url": "https://files.pythonhosted.org/packages/94/43/f009acb8a0af6d5d1097a95ee88bcab81b73765060c1477b99265fe85064/django-thumborize-0.1.tar.gz"
}
],
"1.0": [
{
"comment_text": "",
"digests": {
"md5": "59a0ae9da6dc81db0d6840ed1d5b9da5",
"sha256": "61ca155fa7adc99a4411867081bd7fbf3240cac90ae26d6827c105e30e56fcfc"
},
"downloads": -1,
"filename": "django-thumborize-1.0.tar.gz",
"has_sig": false,
"md5_digest": "59a0ae9da6dc81db0d6840ed1d5b9da5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4623,
"upload_time": "2014-10-21T03:00:18",
"url": "https://files.pythonhosted.org/packages/a0/92/c352fc793d5748dd08764d1e627fddd541b68f418a1ca40a925d6027e2fb/django-thumborize-1.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "59a0ae9da6dc81db0d6840ed1d5b9da5",
"sha256": "61ca155fa7adc99a4411867081bd7fbf3240cac90ae26d6827c105e30e56fcfc"
},
"downloads": -1,
"filename": "django-thumborize-1.0.tar.gz",
"has_sig": false,
"md5_digest": "59a0ae9da6dc81db0d6840ed1d5b9da5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4623,
"upload_time": "2014-10-21T03:00:18",
"url": "https://files.pythonhosted.org/packages/a0/92/c352fc793d5748dd08764d1e627fddd541b68f418a1ca40a925d6027e2fb/django-thumborize-1.0.tar.gz"
}
]
}