{"id":43507543,"url":"https://github.com/zextras/carbonio-preview-sdk","last_synced_at":"2026-02-03T12:39:24.439Z","repository":{"id":42080245,"uuid":"471444258","full_name":"zextras/carbonio-preview-sdk","owner":"zextras","description":"Official SDK for Zextras Carbonio Preview service ","archived":false,"fork":false,"pushed_at":"2026-01-29T09:35:08.000Z","size":63,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":13,"default_branch":"devel","last_synced_at":"2026-01-30T00:47:59.795Z","etag":null,"topics":["carbonio-component"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zextras.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-18T16:41:35.000Z","updated_at":"2026-01-29T09:35:12.000Z","dependencies_parsed_at":"2025-12-05T14:09:16.267Z","dependency_job_id":null,"html_url":"https://github.com/zextras/carbonio-preview-sdk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zextras/carbonio-preview-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zextras%2Fcarbonio-preview-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zextras%2Fcarbonio-preview-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zextras%2Fcarbonio-preview-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zextras%2Fcarbonio-preview-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zextras","download_url":"https://codeload.github.com/zextras/carbonio-preview-sdk/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zextras%2Fcarbonio-preview-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29046175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["carbonio-component"],"created_at":"2026-02-03T12:39:23.870Z","updated_at":"2026-02-03T12:39:24.427Z","avatar_url":"https://github.com/zextras.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2022 Zextras \u003chttps://www.zextras.com\n\nSPDX-License-Identifier: AGPL-3.0-only\n--\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eCarbonio-Preview-Sdk 🚀 \u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nOfficial sdk for Preview backend service for Zextras Carbonio\n\n[![Contributors][contributors-badge]][contributors]\n[![Activity][activity-badge]][activity]\n[![License][license-badge]](COPYING)\n[![Project][project-badge]][project]\n[![Twitter][twitter-badge]][twitter]\n\n\u003c/div\u003e\n\n## Dependency installation 🏁\n\n```xml\n\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.zextras.carbonio.preview\u003c/groupId\u003e\n  \u003cartifactId\u003ecarbonio-preview-sdk\u003c/artifactId\u003e\n  \u003cversion\u003e${preview-sdk.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage 📈\n\n```java\nimport com.zextras.carbonio.preview.queries.BlobResponse;\nimport com.zextras.carbonio.preview.queries.Query;\nimport com.zextras.carbonio.preview.queries.enums.ServiceType;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\n\nclass Test {\n\n  public static void main(String[] argv) throws FileNotFoundException {\n    String fileId = \"3778a545-55e9-4ba8-a131-6abe1cb08d20\";\n    int version = 1;\n    String accountId = \"364bfa07-fafe-4f34-9a92-9fa515065c43\";\n    ServiceType type = ServiceType.FILES;\n\n    // Data initialization\n    Query imagePreviewQuery = new Query.QueryBuilder(accountId, fileId, version, type)\n      .setCrop(true)\n      .setPreviewArea(\"300x200\")\n      .build();\n\n    PreviewClient previewClient = PreviewClient.atURL(\"http://127.0.0.1:10000\");\n\n    // GET\n    previewClient\n      .getPreviewOfImage(imagePreviewQuery)\n      .onSuccess(BlobResponse::getContent);\n\n    // POST\n    FileInputStream blob = new FileInputStream(\"/tmp/image.jpeg\");\n    previewClient\n      .postPreviewOfImage(blob, imagePreviewQuery, \"filename\")\n      .onSuccess(BlobResponse::getContent);\n  }\n}\n```\n\nThe build method closes the chain and returns a Query object used to call the PreviewClient. The\nbuild method does not check for validity of the given input, a wrong query will be signaled only\nonce the PreviewClient sends the query.\n\n## License\nOfficial sdk for Preview backend service for Zextras Carbonio.\n\nReleased under the AGPL-3.0-only license as specified here: [COPYING](COPYING).\n\nCopyright (C) 2022 Zextras \u003chttps://www.zextras.com\u003e\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\nSee [COPYING](COPYING) file for the project license details\n\nSee [THIRDPARTIES](THIRDPARTIES) file for other licenses details\n\n### Copyright notice\n\nAll non-software material (such as, for example, names, images, logos, sounds) is owned by Zextras\ns.r.l. and is licensed under [CC-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/).\n\nWhere not specified, all source files owned by Zextras s.r.l. are licensed under AGPL-3.0-only\n\n\n[contributors-badge]: https://img.shields.io/github/contributors/zextras/carbonio-preview-sdk \"Contributors\"\n\n[contributors]: https://github.com/zextras/carbonio-preview-sdk/graphs/contributors \"Contributors\"\n\n[activity-badge]: https://img.shields.io/github/commit-activity/m/zextras/carbonio-preview-sdk \"Activity\"\n\n[activity]: https://github.com/zextras/carbonio-preview-sdk/pulse \"Activity\"\n\n[license-badge]: https://img.shields.io/badge/license-AGPL-blue.svg\n\n[project-badge]: https://img.shields.io/badge/project-carbonio-informational \"Project Carbonio\"\n\n[project]: https://www.zextras.com/carbonio/ \"Project Carbonio\"\n\n[twitter-badge]: https://img.shields.io/twitter/follow/zextras?style=social\u0026logo=twitter \"Follow on Twitter\"\n\n[twitter]: https://twitter.com/intent/follow?screen_name=zextras \"Follow Zextras on Twitter\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzextras%2Fcarbonio-preview-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzextras%2Fcarbonio-preview-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzextras%2Fcarbonio-preview-sdk/lists"}