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包程序。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
多线程重新构造使用线程池和BlockingQueue的I/O密集型Java web服务   java SWT CTabFolder检查CTAB是否存在   java如何防止具体类的实例化?   java如何将子域定向到正确的JBoss应用程序?   java Android外部文件出现不一致   java FileSystemNotFoundException:未安装提供程序“jndi”   显示jframe上的java隐藏单选按钮   java CXF客户端TCP连接在每个请求之间关闭   Hadoop查询、日期、循环、BASH或Java   java从长类型到十进制类型对象的转换类型错误   java为什么不在用户消息中提供用户提供的数据?有可能的威胁/攻击吗?   使用作用域存储MediaStore的应用程序中的java共享意图问题   java我可以通过将成员指针传递给方法并在方法中分配来初始化它吗?   java如何在一个包含正负值的数组中找到最大的负值?   java有比较二叉树路径的简单方法吗?   java Swagger(ui)不显示操作   java KairosDB缺失值的线性插值   用于此特定求和的java循环