{ "info": { "author": "DictGet Team", "author_email": "dictget@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ecce-homo\n=========\n\nA simple micro application to serve images with customized cropping\n|True ecce homo|\n\nIntroduction\n------------\n\nThis micro application resizes existing images according to given query\nparameters. The application returns the image and saves the image as the\nprevious filename suffixed with the query params. The intended usage is\nwith a file server which will return this new image the second time when\nthe url matches the new filename.\n\nE.g. for an existing image ``image.jpg`` we use ``image.jpg?w=200`` to\nset the width to 200 and save the new file as ``image.jpg?w=200``\n\nConfiguration\n-------------\n\nThe settings are read from environment variables. ####\nECCEOMO\\_MEDIA\\_ROOT The absolute path to the root directory common to\nall media files. e.g. ``export ECCEHOMO_MEDIA_ROOT='/www/media'`` ####\nECCEHOMO\\_MEDIA\\_URL Optional URL between domain and filename. e.g.\n``export ECCEHOMO_MEDIA_URL='media'`` #### ECCEHOMO\\_DEFAULT\\_METHOD Set\nto ``contain`` if left unset. Defines a default method to use when\nheight ``h`` and width ``w`` are specified with a without a method\n``t``. e.g. ``export ECCEHOMO_DEFAULT_METHOD='crop'`` ####\nECCEHOMO\\_MINIMUM\\_LENGTH Sets a minimum accepted length for the width\n``w`` and height ``h`` parameters. e.g.\n``export ECCEHOMO_MINIMUM_LEGNTH=10`` ## Usage There are three query\nparameters. Height ``h``, Width, ``w``, and method type ``t``. Method\ndefintions in `python-resize-image readme`_\n\n| They should be used always in the same order as the filename will be\n saved with the querystring as part of its filename.\n| With example values given.\n| Resize width:\n| ``?w=100``\n| Resize height:\n| ``?h=100``\n| Resize default e.g. contain:\n| ``?w=100&h=50``\n| Resize crop:\n| ``?w=100&h=50&t=crop``\n| Resize thumbnail:\n| ``?w=100&h=50&t=thumbnail``\n| Resize cover:\n| ``?w=100&h=50&t=cover``\n| ## Notes: ## Files are saved with url path as filename. If trailing\n slash present in url will be removed for filename\n ``{domain}/{media_url}/path/to/file.jpg/?w=100`` ->\n ``{media_directory}/path/to/file.jpg?w=100``\n\n.. _python-resize-image readme: 'https://github.com/charlesthk/python-resize-image'\n\n.. |True ecce homo| image:: http://ep00.epimg.net/cultura/imagenes/2012/08/23/actualidad/1345709139_149007_1345712998_noticia_normal.jpg", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/dictget/ecce-homo/archive/0.1.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dictget/ecce-homo", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "eccehomo", "package_url": "https://pypi.org/project/eccehomo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/eccehomo/", "project_urls": { "Download": "https://github.com/dictget/ecce-homo/archive/0.1.3.tar.gz", "Homepage": "https://github.com/dictget/ecce-homo" }, "release_url": "https://pypi.org/project/eccehomo/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Micro application to serve images with customized cropping", "version": "0.1.3" }, "last_serial": 2725488, "releases": { "0.1.0": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6a7096db38d8dd7901082512ba2b3c7c", "sha256": "8166c9cbbf26d14aff0fa1ca41e41d446f69aedbb9126cf4dd1b80fd2c0bfb93" }, "downloads": -1, "filename": "eccehomo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6a7096db38d8dd7901082512ba2b3c7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4233, "upload_time": "2017-03-23T10:19:03", "url": "https://files.pythonhosted.org/packages/02/43/5ff02a9fda2d3177cdf25bac35d9b72c3e9b009360dcb7df4b0d37a91615/eccehomo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "421a8df2211caf63ecbc5d20bccdf70a", "sha256": "52f580c63d94bf5912606024ea9ce989e55e0413010ab019f7a2f27b863e3e9c" }, "downloads": -1, "filename": "eccehomo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "421a8df2211caf63ecbc5d20bccdf70a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4578, "upload_time": "2017-03-23T10:46:49", "url": "https://files.pythonhosted.org/packages/fa/46/d2c86617227a720b4e50b9677f784c06d7a1005369226940b2a4d1ce19d6/eccehomo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "886c000f16373e7fd198faa103f9dde6", "sha256": "0523a81a3774e492941527b297ac85f88be642a398a0536008447a77d4a4dcd6" }, "downloads": -1, "filename": "eccehomo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "886c000f16373e7fd198faa103f9dde6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4622, "upload_time": "2017-03-23T10:51:08", "url": "https://files.pythonhosted.org/packages/db/72/4476336537a7ca78fd1438719cb46ba80a052d439f5808f55eff5a322c37/eccehomo-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "886c000f16373e7fd198faa103f9dde6", "sha256": "0523a81a3774e492941527b297ac85f88be642a398a0536008447a77d4a4dcd6" }, "downloads": -1, "filename": "eccehomo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "886c000f16373e7fd198faa103f9dde6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4622, "upload_time": "2017-03-23T10:51:08", "url": "https://files.pythonhosted.org/packages/db/72/4476336537a7ca78fd1438719cb46ba80a052d439f5808f55eff5a322c37/eccehomo-0.1.3.tar.gz" } ] }