Pollexor <a href="https://github.com/square/pollexor#examples"></a>示例 Thumbor 的 Java 客户端

程序名称:Pollexor <a href="https://github.com/square/pollexor#examples"></a>示例

授权协议: Apache

操作系统: 跨平台

开发语言: Java

Pollexor <a href="https://github.com/square/pollexor#examples"></a>示例 介绍

Pollexor 是 Thumbor 图片服务的 JAVA 客户端,兼容
Android 平台。

Maven:

<dependency>
  <groupId>com.squareup</groupId>
  <artifactId>pollexor<artifactId>
  <version>2.0.2</version>
</dependency>

Gradle:

compile 'com.squareup:pollexor:2.0.2'

示例

// Without encryption:Thumbor thumbor = Thumbor.create("http://example.com/");
// With encryption:Thumbor thumbor = Thumbor.create("http://example.com/", "key");


thumbor.buildImage("http://example.com/image.png")
    .resize(48, 48)
    .toUrl()// Produces: /unsafe/48x48/example.com/image.pngthumbor.buildImage("http://example.com/image.png")
    .crop(10, 10, 90, 90)
    .resize(40, 40)
    .smart()
    .toUrl()// Produces: /unsafe/10x10:90x90/smart/40x40/example.com/image.pngthumbor.buildImage("http://example.com/image.png")
    .crop(5, 5, 195, 195)
    .resize(95, 95)
    .align(BOTTOM, RIGHT)
    .toUrl()// Produces: /unsafe/5x5:195x195/right/bottom/95x95/example.com/image.pngthumbor.buildImage("http://example.com/background.png")
    .resize(200, 100)
    .filter(
        roundCorner(10),
        watermark(thumbor.buildImage("http://example.com/overlay1.png").resize(200, 100)),
        watermark(thumbor.buildImage("http://example.com/overlay2.png").resize(50, 50), 75, 25),
        quality(85)
    )
    .toUrl()// Produces: /unsafe/200x100/filters:round_corner(10,255,255,255):watermark(/unsafe/200x100/example.c

Pollexor <a href="https://github.com/square/pollexor#examples"></a>示例 官网

http://square.github.io/pollexor/

相关编程语言

Pacman 是一个软件包管理器, 作为 ArchLinux 发行版...
Smb4K 是KDE下的网络共享浏览器 更多屏幕截图请看:...
Wine (“Wine Is Not an Emulator” 的首字母缩写)...
虚拟桌面软件,可管理最多9个虚拟桌面,你可以用热键...
UNetbootin (Universal Netboot Installer)为一种跨...
Cobbler 可以用来快速建立 Linux 网络安装环境,它已...