{
"info": {
"author": "Agus Makmun (Summon Agus)",
"author_email": "summon.agus@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 1.10",
"Framework :: Django :: 1.11",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"Framework :: Django :: 2.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "django-image-optimizer |pypi version|\n---------------------------------------\n\n.. |pypi version|\n image:: https://img.shields.io/pypi/v/django-image-optimizer.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-image-optimizer\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n :target: https://raw.githubusercontent.com/agusmakmun/django-image-optimizer/master/LICENSE\n\n.. image:: https://img.shields.io/pypi/pyversions/django-image-optimizer.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-image-optimizer\n\n.. image:: https://img.shields.io/badge/Django-1.8,%201.9,%201.10,%201.11,%202.0-green.svg?style=flat-square\n :target: https://www.djangoproject.com\n\n\nDjango Image Optimizer is a simple Django library that allows optimization\nof images by using `TinyPNG `_ or `Pillow `_.\n\n\nInstallation\n------------------------------\n\nMartor is available directly from `PyPI `_:\n\n1. Installing the package.\n\n::\n\n $ pip install django-image-optimizer\n\n\n2. Don't forget to add ``'image_optimizer'`` to your ``'INSTALLED_APPS'``.\n\n::\n\n # settings.py\n INSTALLED_APPS = [\n ....\n 'image_optimizer',\n ]\n\n\n3. You have the option to use either TinyPNG or Pillow for optimizing images.\n Inform ``optimized_image`` which one you want to use by setting the following\n\n::\n\n # To use Pillow\n OPTIMIZED_IMAGE_METHOD = 'pillow'\n # To use TinyPNG\n OPTIMIZED_IMAGE_METHOD = 'tinypng'\n\nAny other string that is set for this setting will mean that optimization does\nnot occur. If you are unsure of whether you would like to use TinyPNG or Pillow,\nfeel free to consult the documentation of each.\n\nIf you choose to use TinyPNG, you will need to get an API key from\nTinyPNG. Visit https://tinypng.com/developers for more details on getting an\nAPI key. Once you have done so, add the following setting to your settings\nfile. Note: it is a good idea to keep this secret\n\n::\n\n TINYPNG_KEY = 'your-key'\n\n\n4. You may use the ``OptimizedImageField`` by importing it\n\n::\n\n from django.db import models\n\n from optimized_image.fields import OptimizedImageField\n\n\n class MyModel(models.Model):\n ...\n image = OptimizedImageField()\n\n\nand saving images into it, the same way you would to a Django ``ImageField``.\nThe optimized image will be saved into the ``url`` field in place of the\nunoptimized image.\n\n\n Note about TinyPNG API keys: If you obtain the free TinyPNG API token, you are limited to 500\n image optimizations per month, so this function may fail if you have a\n lot of images. You may either obtain a paid API key, or wait until next month.\n\nThis project also taken from: https://github.com/dchukhin/django_optimized_image\n",
"description_content_type": "",
"docs_url": null,
"download_url": "https://github.com/agusmakmun/django-image-optimizer/tarball/v1.0.0",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/agusmakmun/django-image-optimizer",
"keywords": "image optimizer",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "django-image-optimizer",
"package_url": "https://pypi.org/project/django-image-optimizer/",
"platform": "",
"project_url": "https://pypi.org/project/django-image-optimizer/",
"project_urls": {
"Download": "https://github.com/agusmakmun/django-image-optimizer/tarball/v1.0.0",
"Homepage": "https://github.com/agusmakmun/django-image-optimizer"
},
"release_url": "https://pypi.org/project/django-image-optimizer/1.0.0/",
"requires_dist": null,
"requires_python": "",
"summary": "Django Image Optimizer (Compressor)",
"version": "1.0.0"
},
"last_serial": 4105097,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "3ffebc42760385cf1737febb57c020b4",
"sha256": "3dba06be47f975768352d5b83ac8b86cf40dae25decc6572c7859824a9595fc0"
},
"downloads": -1,
"filename": "django-image-optimizer-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "3ffebc42760385cf1737febb57c020b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4355,
"upload_time": "2018-07-26T15:40:49",
"url": "https://files.pythonhosted.org/packages/c9/bd/b223ef33771ec06202b9881b118e66f0fc986c03ad1f2cd06b1387665730/django-image-optimizer-1.0.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "3ffebc42760385cf1737febb57c020b4",
"sha256": "3dba06be47f975768352d5b83ac8b86cf40dae25decc6572c7859824a9595fc0"
},
"downloads": -1,
"filename": "django-image-optimizer-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "3ffebc42760385cf1737febb57c020b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4355,
"upload_time": "2018-07-26T15:40:49",
"url": "https://files.pythonhosted.org/packages/c9/bd/b223ef33771ec06202b9881b118e66f0fc986c03ad1f2cd06b1387665730/django-image-optimizer-1.0.0.tar.gz"
}
]
}