Thumbor预设值======make
thumbor_presets的Python项目详细描述
Thumbor预设值======make[Thumbor](https://github.com/thumbor/thumbor)通过在设置中保留常用大小和筛选器,使URL简短而甜蜜。当你看着拇指或网址的时候,有没有感觉到你内心的完美主义者在哭泣?想提名拇指为吉尼斯世界纪录拥有世界上最长的网址?我也是。满足拇指预设-一个小的附加组件,以保持您最常见的大小,过滤器和设置在拇指的配置权利。用法-----通过pypi或github安装此软件包:``sh pip install thumb or嫒presets`或pip install https://github.com/alexmorozov/thumbor-presets```将常用预设添加到thumbor配置文件:``python嫒thumbor.conf presets={'small嫒thumb':'250x100/smart/filters:grayscale(),watermark(/some/image.jpg)}```使用可感知预设的应用程序启动thumbor实例:```sh thumbor-a thumbor_presets.app.thumborservicepp```完成!以简单的方式访问预设:```` curl curl http://thumbor_server.com/unsafe/preset/small_thumb/image.jpg```另请参阅---*优秀的[拇指社区/缩写](https://github.com/thumbor-community/shortener)扩展也允许您缩短URL,尽管方式略有不同。要求-----*Thumbor许可证-----MIT作者---`Thumbor Presets`由[Alex Morozov]编写(mailto:电感2000@mail.ru)。
- 此包Python名称:thumbor_presets
- 目前版本: thumbor_presets 0.1.3
- 最后维护时间:Feb 15, 2016
- 摘要:thumbor-presets =============== Make [Thumbor](https://github.com/thumbor/thumbor) urls short and sweet by keeping common sizes and filters in settings. Ever felt your inner perfectionist crying when looking at the Thumbor urls? Want to nominate Thumbor for the Guinness World Record for having the longest urls in the universe? So did I. Meet thumbor-presets - a tiny add-on to keep your most common sizes, filters and settings right in the Thumbor's config. Usage ----- Install this package via PyPi or GitHub: ```sh pip install thumbor_presets # or pip install https://github.com/alexmorozov/thumbor-presets ``` Add your common presets to your Thumbor config file: ```python # thumbor.conf PRESETS = { 'small_thumb': '250x100/smart/filters:grayscale(),watermark(/some/image.jpg)', } ``` Start a Thumbor instance with a presets-aware app: ```sh thumbor -a thumbor_presets.app.ThumborServiceApp ``` And you're done! Access your presets the easy way: ````curl curl http://thumbor_server.com/unsafe/preset/small_thumb/image.jpg ```` See also -------- * The excellent [thumbor-community/shortener](https://github.com/thumbor-community/shortener) extension also allows you to shorten your urls, though a slightly different way. Requirements ------------ * thumbor License ------- MIT Authors ------- `thumbor-presets` was written by [Alex Morozov](mailto:inductor2000@mail.ru).
- 安装命令:pip install thumbor_presets
- 其它:thumbor_presets 这个Python第三方库的作者没有提供更多的项目描述信息了,2019-11-11 22:36:34。
- 可以返回 PyPI第三方库 首页,查找更多相关Python包程序。