{ "info": { "author": "Jes\u00fas Espino", "author_email": "jespinog@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django Transparent Image Neat Transformer\n-----------------------------------------\n\n.. image:: http://kaleidos.net/static/img/badge.png\n :target: http://www.kaleidos.net/community/django-tint/\n\n.. image:: https://travis-ci.org/jespino/django-tint.png?branch=master\n :target: https://travis-ci.org/jespino/django-tint\n\n.. image:: https://coveralls.io/repos/jespino/django-tint/badge.png?branch=master\n :target: https://coveralls.io/r/jespino/django-tint?branch=master\n\n.. image:: https://pypip.in/v/django-tint/badge.png\n :target: https://crate.io/packages/django-tint\n\n.. image:: https://pypip.in/d/django-tint/badge.png\n :target: https://crate.io/packages/django-tint\n\nUsage\n~~~~~\n\nYou must define your transformation in your :code:`TINT_TRANSFORMATIONS` settings\nvariable.\n\nYou set your images on your models puting a :code:`ForeignKey` to\n:code:`tint.models.Image`.\n\nThen you put your images in your templates using the :code:`at_transformation` filter. Example::\n\n {% load tint %}\n\n \n\nIf you use django-jinja you only have to use the :code:`image_at_transformation` function. Example::\n\n \n\n\nDefault ImageProc Actions\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nDjango-tint default Image Processor comes with some actions, here you have the\nlist:\n\n+-----------------+-------------------------------+--------------------------+\n| Action | Description | Params |\n+=================+===============================+==========================+\n| crop | Crop an image to a width and | height, width, align, |\n| | height. | valign |\n+-----------------+-------------------------------+--------------------------+\n| scale | Scale an image to a width and | height, width |\n| | height (deforming it). | |\n+-----------------+-------------------------------+--------------------------+\n| fit | Scale an image to a width and | height, width, align, |\n| | height and crop the overflow. | valign |\n+-----------------+-------------------------------+--------------------------+\n| watermark | Paste a watermark on a image. | watermark_image, opacity |\n+-----------------+-------------------------------+--------------------------+\n| grayscale | Convert the image to | |\n| | grayscale. | |\n+-----------------+-------------------------------+--------------------------+\n| flip | Flip the image vertically. | |\n+-----------------+-------------------------------+--------------------------+\n| mirror | Flip the image horizontally. | |\n+-----------------+-------------------------------+--------------------------+\n| equalize | Equalize the image histogram. | |\n+-----------------+-------------------------------+--------------------------+\n| autocontrast | Maximize (normalize) image | cutoff |\n| | contrast. | |\n+-----------------+-------------------------------+--------------------------+\n| invert | Invert the image colors. | |\n+-----------------+-------------------------------+--------------------------+\n| convert | Convert image mode (L, RGB or | mode |\n| | CYMK). | |\n+-----------------+-------------------------------+--------------------------+\n\nConfiguration\n~~~~~~~~~~~~~\n\nIn Django-tint you can define your :code:`ImageProc` class (normally will be a subclass\nof the :code:`DefaultImageProc`) to add your own image transformations. You can use it\nconfiguring the :code:`TINT_IMAGE_PROCESSOR` settings variable. Example::\n\n TINT_IMAGE_PROCESSOR = 'myapp.my_image_processor_module.MyImageProcessorClass'\n\nIf the variable is not defined the :code:`DefaultImageProc` is used.\n\nThen you can configure your transformations as a dictionary. The name of the\ntransformation is the key, and the value is a list of \"actions\". An action is a\ndictionary with one key 'action' with the name of the action, and the other\nkeys the parameters to use in this action. Example::\n\n TINT_TRANSFORMATIONS = {\n 'example1': [\n {\n \"action\": 'fit',\n \"width\": 1024,\n \"height\": 768,\n \"align\": 'center',\n \"valign\": 'middle',\n },\n {\n \"action\": 'watermark',\n \"image\": 'example.watermark.png',\n \"opacity\": 0.5,\n },\n ],\n 'example2': [\n {\n \"action\": 'fit',\n \"width\": 800,\n \"height\": 600,\n \"align\": 'center',\n \"valign\": 'middle',\n },\n {\n \"action\": 'watermark',\n \"image\": 'example.watermark.png',\n \"opacity\": 0.5,\n },\n ]\n }\n\nYou can define the the removing of deleted images or thumnails model instances,\nremove the image file with the settings ``TINT_KEEP_THUMBNAILS`` and\n``TINT_KEEP_IMAGES``, the default value is True to both settings.\n\nYou can define your file output format and your file output extension with the\nsettings ``TINT_IMAGE_OUTPUT_FORMAT`` and ``TINT_IMAGE_OUTPUT_EXTENSION``. The\ndefault value is None this means use the same format and extension of the\norigin file. Example::\n\n TINT_IMAGE_OUTPUT_FORMAT = \"png\"\n TINT_IMAGE_OUTPUT_EXTENSION = \".png\"\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-tint", "package_url": "https://pypi.org/project/django-tint/", "platform": "any", "project_url": "https://pypi.org/project/django-tint/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-tint/0.1/", "requires_dist": null, "requires_python": null, "summary": "Transparent image transformation system", "version": "0.1" }, "last_serial": 887126, "releases": { "0.0.3": [], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e1cc496e8b1cd8319ca54d5036a657e8", "sha256": "4392439b6bb3805e2e69556094bad5ac750225f8596a16ede5d0f653c507aa07" }, "downloads": -1, "filename": "django-tint-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e1cc496e8b1cd8319ca54d5036a657e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8485, "upload_time": "2013-06-09T11:43:21", "url": "https://files.pythonhosted.org/packages/f0/e2/3c81843e459a4ee35e677ac5bd88d7e574f88ee5741af356e3a3f99579ba/django-tint-0.0.4.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "0400a35f6550c2f07ef7af222de0d0be", "sha256": "9372d437e2ab0e74acf6041530969da68fabfdfbe9ec09597e0c691fae576519" }, "downloads": -1, "filename": "django-tint-0.1.tar.gz", "has_sig": false, "md5_digest": "0400a35f6550c2f07ef7af222de0d0be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8996, "upload_time": "2013-10-11T10:54:31", "url": "https://files.pythonhosted.org/packages/63/61/b59bd04c88ce92cb8a0a42f2141ba3dac86bc9d196c5972662d4f09d4f82/django-tint-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0400a35f6550c2f07ef7af222de0d0be", "sha256": "9372d437e2ab0e74acf6041530969da68fabfdfbe9ec09597e0c691fae576519" }, "downloads": -1, "filename": "django-tint-0.1.tar.gz", "has_sig": false, "md5_digest": "0400a35f6550c2f07ef7af222de0d0be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8996, "upload_time": "2013-10-11T10:54:31", "url": "https://files.pythonhosted.org/packages/63/61/b59bd04c88ce92cb8a0a42f2141ba3dac86bc9d196c5972662d4f09d4f82/django-tint-0.1.tar.gz" } ] }