{ "info": { "author": "Davide Riccardo Caliendo", "author_email": "frague59@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "INSTALL\n=======\n\nput easy_thumbnails_watermark in INSTALLED_APPS\n\n::\n\n INSTALLED_APPS = (\n 'easy_thumbnails_watermark',\n )\n\nadd the watermark preprocesor in your settings\n\n::\n\n from easy_thumbnails.conf import Settings as easy_thumbnails_defaults\n\n THUMBNAIL_PROCESSORS = easy_thumbnails_defaults.THUMBNAIL_PROCESSORS + (\n 'easy_thumbnails_watermark.thumbnail_processors.watermark_processor',\n )\n\nand add 'WATERMARK': , to your thumbnail definition for easy_thumbnails.\n\n::\n\n 'thumb': {\n ...\n 'WATERMARK': { \n 'image': 'main/img/logo.png',\n 'opacity': 0.2,\n 'scale': '40%',\n },\n ...\n },\n\nAnd one of the following settings:\n\n* ``image`` - A path to an image in your static files folder\n* ``position`` - Specify the relative position in one of four image corners ``BR``, ``BL``,\n ``TR``, and ``TL``. These represent 'bottom-right', 'bottom-left', 'top-right', and 'top-left' respectively.\n\n Alternatively, you can use relative or absolute positioning for the\n watermark. Relative positioning uses percentages; absolute positioning uses\n exact pixels. You can mix and match these two modes of positioning, but you\n cannot mix and match relative/absolute with the corner positioning. When\n using relative/absolute positioning, the value for the ``position`` parameter\n is ``XxY``, where ``X`` is the left value and ``Y`` is the top value. The\n left and top values must be separated with a lowercase ``x``.\n\n If you wanted your watermark image to show up in the center of any image you\n want to watermark, you would use a position parameter such as\n ``position=50%x50%`` or even ``position=C``. If you wanted the watermark to\n show up half-way between the left and right edges of the image and 100 pixels\n from the top, you would use a position parameter such as\n ``position=50%x100``. \n\n Finally, you may tell the filter to generate a position for your watermark\n dynamically. To do this, use ``position=R``.\n* ``opacity`` - This parameter allows you to specify the transparency of the\n applied watermark. The value must be an integer between 0 and 1, where 0\n is fully transparent and 1 is fully opaque. By default, the opacity is set\n at 0.5.\n* ``tile`` - If you want your watermark to tile across the entire image, you\n simply specify a parameter such as ``tile=1``.\n* ``scale`` - If you'd like to have the watermark as big as possible on the\n target image and fully visible, you might want to use ``scale=F``. If you\n want to specify a particular scaling factor, just use something like\n ``scale=1.43``.\n Scale could also be a percentage of the smallest image, the one to be watermarked,\n dimension, for example '20%' would scale the watermark to be 20% of the smallest\n between width and height of the target image.\n* ``greyscale`` - If you want your watermark to be greyscale, you can specify\n the parameter ``greyscale=1`` and all color saturation will go away.\n* ``rotation`` - Set this parameter to any integer between 0 and 359 (really\n any integer should work, but for your own sanity I recommend keeping the\n value between 0 and 359). If you want the rotation to be random, use\n ``rotation=R`` instead of an integer.\n* ``noalpha`` defaults to False, removes any alpha introduced with the watermark effect, useful to force a jpg image to remain the same, saving a lot of space, setting to True effectively converts any RGBA color space to RGB.\n\nThey defaults to watermark=False, position='C', opacity=100, scale=1, tile=False, greyscale=False, rotation=0\n\nCredits\n=======\n\nI copied various code from https://raw.github.com/codekoala/django-watermark\nand simply adapted for easy_thumbnails\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/frague59/django-easy-thumbnails-watermark", "keywords": "", "license": "GPLv3 License", "maintainer": "", "maintainer_email": "", "name": "django-easy-thumbnails-watermark-1", "package_url": "https://pypi.org/project/django-easy-thumbnails-watermark-1/", "platform": "", "project_url": "https://pypi.org/project/django-easy-thumbnails-watermark-1/", "project_urls": { "Homepage": "https://github.com/frague59/django-easy-thumbnails-watermark" }, "release_url": "https://pypi.org/project/django-easy-thumbnails-watermark-1/0.7.0/", "requires_dist": [ "easy-thumbnails" ], "requires_python": "", "summary": "A watermark filter for easy_thumbnails", "version": "0.7.0" }, "last_serial": 3530965, "releases": { "0.7.0": [ { "comment_text": "", "digests": { "md5": "ef9acb9d5aae5a8c05c395862206a1b2", "sha256": "79d414b3046c37345cdadb258029740a310334ebd4545d142502fbac2573e0c9" }, "downloads": -1, "filename": "django_easy_thumbnails_watermark_1-0.7.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ef9acb9d5aae5a8c05c395862206a1b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8749, "upload_time": "2018-01-29T08:20:57", "url": "https://files.pythonhosted.org/packages/35/e7/2885d0b9bdea25300e06e993b1c4890b3393563292c6edb482d1f06ea57b/django_easy_thumbnails_watermark_1-0.7.0-py3-none-any.whl" } ], "0.7.0a1": [ { "comment_text": "", "digests": { "md5": "0974372603526ade1537af259f3c9a34", "sha256": "749a88dc75bbdad2fcfeb867314d047b8be6eb8c18865128f7061ba8628a0cc2" }, "downloads": -1, "filename": "django_easy_thumbnails_watermark_1-0.7.0a1-py3-none-any.whl", "has_sig": false, "md5_digest": "0974372603526ade1537af259f3c9a34", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8838, "upload_time": "2018-01-29T09:45:55", "url": "https://files.pythonhosted.org/packages/cf/ef/964904bd6436c47bf55d178ced52822765b1e7bf5b2726e7b9f446c1bb16/django_easy_thumbnails_watermark_1-0.7.0a1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef9acb9d5aae5a8c05c395862206a1b2", "sha256": "79d414b3046c37345cdadb258029740a310334ebd4545d142502fbac2573e0c9" }, "downloads": -1, "filename": "django_easy_thumbnails_watermark_1-0.7.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ef9acb9d5aae5a8c05c395862206a1b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8749, "upload_time": "2018-01-29T08:20:57", "url": "https://files.pythonhosted.org/packages/35/e7/2885d0b9bdea25300e06e993b1c4890b3393563292c6edb482d1f06ea57b/django_easy_thumbnails_watermark_1-0.7.0-py3-none-any.whl" } ] }