<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          PollexorThumbor 的 Java 客戶(hù)端

          聯(lián)合創(chuàng)作 · 2023-09-29 22:21

          Pollexor 是 Thumbor 圖片服務(wù)的 JAVA 客戶(hù)端,兼容 Android 平臺(tái)。

          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

           

          瀏覽 28
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产成人秘 一区二区三区东京热 | 国产午夜一区二区 | 丁香网五月 | 俺也来俺也去WWW色 | 岛国不卡在线 |