【文件属性】:
文件名称:Thumbor的Java客户端Pollexor.zip
文件大小:79KB
文件格式:ZIP
更新时间:2022-08-06 07:06:19
开源项目
Pollexor 是 Thumbor 图片服务的 JAVA 客户端,兼容 Android 平台。Maven:
com.squareup
pollexor
2.0.2
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
【文件预览】:
pollexor-master
----.gitignore(180B)
----README.md(3KB)
----pom.xml(3KB)
----.buildscript()
--------deploy_snapshot.sh(1008B)
--------settings.xml(221B)
----CHANGELOG.md(2KB)
----checkstyle.xml(4KB)
----website()
--------bootstrap.min.css(86KB)
--------square.png(2KB)
--------prettify.css(333B)
--------invaders.png(15KB)
--------app.css(707B)
--------jquery-maven-artifact.min.js(2KB)
--------prettify.js(13KB)
--------bootstrap-responsive.min.css(9KB)
--------ribbon.png(7KB)
--------index.html(4KB)
----CONTRIBUTING.md(735B)
----src()
--------test()
--------main()
----LICENSE.txt(11KB)
----deploy_website.sh(686B)
----.travis.yml(601B)