{"id":13486880,"url":"https://github.com/square/pollexor","last_synced_at":"2025-06-13T01:40:09.910Z","repository":{"id":3989591,"uuid":"5085837","full_name":"square/pollexor","owner":"square","description":"Java client for the Thumbor image service which allows you to build URIs in an expressive fashion using a fluent API.","archived":false,"fork":false,"pushed_at":"2024-02-07T20:44:01.000Z","size":288,"stargazers_count":641,"open_issues_count":2,"forks_count":87,"subscribers_count":22,"default_branch":"trunk","last_synced_at":"2024-04-13T17:52:11.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://square.github.io/pollexor/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/square.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2012-07-17T18:06:03.000Z","updated_at":"2024-04-16T14:52:11.754Z","dependencies_parsed_at":"2023-07-05T20:31:43.018Z","dependency_job_id":"0f495bdc-3ca2-4bf4-a3b5-2706a162b22f","html_url":"https://github.com/square/pollexor","commit_stats":{"total_commits":129,"total_committers":14,"mean_commits":9.214285714285714,"dds":"0.20155038759689925","last_synced_commit":"4b493059862ff22e622e50f46c2ae4990b93eb0d"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fpollexor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fpollexor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fpollexor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fpollexor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/square","download_url":"https://codeload.github.com/square/pollexor/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245927249,"owners_count":20695195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T18:00:52.444Z","updated_at":"2025-03-27T21:31:31.617Z","avatar_url":"https://github.com/square.png","language":"Java","funding_links":[],"categories":["Java Integration \u0026 URL Generation","Image Processing"],"sub_categories":[],"readme":"Pollexor - Java Thumbor client by Square\n========================================\n\nJava client for the [Thumbor image service][1] which allows you to build URIs\nin an expressive fashion using a fluent API.\n\nThis library is also fully compatible with the Android platform.\n\n\n\nDownload\n--------\n\nDownload [the latest JAR][2] or grab via Gradle:\n```groovy\nimplementation 'com.squareup:pollexor:3.0.0'\n```\n\nor Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.squareup\u003c/groupId\u003e\n  \u003cartifactId\u003epollexor\u003c/artifactId\u003e\n  \u003cversion\u003e3.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\n\n\nExamples\n--------\n\n```java\n// Without encryption:\nThumbor thumbor = Thumbor.create(\"http://example.com/\");\n\n// With encryption:\nThumbor thumbor = Thumbor.create(\"http://example.com/\", \"key\");\n```\n\n```java\nthumbor.buildImage(\"http://example.com/image.png\")\n    .resize(48, 48)\n    .toUrl()\n// Produces: /unsafe/48x48/example.com/image.png\n\nthumbor.buildImage(\"http://example.com/image.png\")\n    .crop(10, 10, 90, 90)\n    .resize(40, 40)\n    .smart()\n    .toUrl()\n// Produces: /unsafe/10x10:90x90/smart/40x40/example.com/image.png\n\nthumbor.buildImage(\"http://example.com/image.png\")\n    .crop(5, 5, 195, 195)\n    .resize(95, 95)\n    .align(BOTTOM, RIGHT)\n    .toUrl()\n// Produces: /unsafe/5x5:195x195/right/bottom/95x95/example.com/image.png\n\nthumbor.buildImage(\"http://example.com/background.png\")\n    .resize(200, 100)\n    .filter(\n        roundCorner(10),\n        watermark(thumbor.buildImage(\"http://example.com/overlay1.png\").resize(200, 100)),\n        watermark(thumbor.buildImage(\"http://example.com/overlay2.png\").resize(50, 50), 75, 25),\n        quality(85)\n    )\n    .toUrl()\n// Produces: /unsafe/200x100/filters:round_corner(10,255,255,255):watermark(/unsafe/200x100/example.com/overlay1.png,0,0,0):watermark(/unsafe/50x50/example.com/overlay2.png,75,25,0):quality(85)/example.com/background.png\n```\n\n\n\nLicense\n=======\n\n    Copyright 2012 Square, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n [1]: https://github.com/globocom/thumbor\n [2]: https://search.maven.org/remote_content?g=com.squareup\u0026a=pollexor\u0026v=LATEST\n [snap]: https://s01.oss.sonatype.org/content/repositories/snapshots/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fpollexor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquare%2Fpollexor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fpollexor/lists"}