{"id":37023917,"url":"https://github.com/kraken-io/kraken-java","last_synced_at":"2026-01-14T02:52:54.255Z","repository":{"id":41224889,"uuid":"41806446","full_name":"kraken-io/kraken-java","owner":"kraken-io","description":"Official Kraken.io library for Java","archived":false,"fork":false,"pushed_at":"2023-08-28T11:38:00.000Z","size":195,"stargazers_count":9,"open_issues_count":8,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-16T18:12:37.028Z","etag":null,"topics":["api-client","image-optimization","maven-pom"],"latest_commit_sha":null,"homepage":"https://kraken.io/","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/kraken-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-02T14:35:45.000Z","updated_at":"2021-12-17T09:37:30.000Z","dependencies_parsed_at":"2022-08-23T15:21:48.936Z","dependency_job_id":null,"html_url":"https://github.com/kraken-io/kraken-java","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kraken-io/kraken-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kraken-io%2Fkraken-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kraken-io%2Fkraken-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kraken-io%2Fkraken-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kraken-io%2Fkraken-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kraken-io","download_url":"https://codeload.github.com/kraken-io/kraken-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kraken-io%2Fkraken-java/sbom","scorecard":{"id":569290,"data":{"date":"2025-08-11","repo":{"name":"github.com/kraken-io/kraken-java","commit":"b6884f49d6d8c1289be32c83968697e719f8c6d2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 6/24 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"58 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-27xj-rqx5-2255","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-4w82-r329-3q67","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-58pp-9c76-5625","Warn: Project is vulnerable to: GHSA-5949-rw7g-wx7w","Warn: Project is vulnerable to: GHSA-5p34-5m6p-p58g","Warn: Project is vulnerable to: GHSA-5r5r-6hpj-8gg9","Warn: Project is vulnerable to: GHSA-5ww9-j83m-q7qx","Warn: Project is vulnerable to: GHSA-6fpp-rgj9-8rwc","Warn: Project is vulnerable to: GHSA-758m-v56v-grj4","Warn: Project is vulnerable to: GHSA-85cw-hj65-qqv9","Warn: Project is vulnerable to: GHSA-89qr-369f-5m5x","Warn: Project is vulnerable to: GHSA-8c4j-34r4-xr8g","Warn: Project is vulnerable to: GHSA-8w26-6f25-cm9x","Warn: Project is vulnerable to: GHSA-95cm-88f5-f2c7","Warn: Project is vulnerable to: GHSA-9gph-22xh-8x98","Warn: Project is vulnerable to: GHSA-9m6f-7xcq-8vf8","Warn: Project is vulnerable to: GHSA-9vvp-fxw6-jcxr","Warn: Project is vulnerable to: GHSA-c265-37vj-cwcc","Warn: Project is vulnerable to: GHSA-c2q3-4qrh-fm48","Warn: Project is vulnerable to: GHSA-cf6r-3wgc-h863","Warn: Project is vulnerable to: GHSA-cmfg-87vq-g5g4","Warn: Project is vulnerable to: GHSA-cvm9-fjm9-3572","Warn: Project is vulnerable to: GHSA-f3j5-rmmp-3fc5","Warn: Project is vulnerable to: GHSA-f9xh-2qgp-cq57","Warn: Project is vulnerable to: GHSA-fmmc-742q-jg75","Warn: Project is vulnerable to: GHSA-fqwf-pjwf-7vqv","Warn: Project is vulnerable to: GHSA-gjmw-vf9h-g25v","Warn: Project is vulnerable to: GHSA-gwp4-hfv6-p7hw","Warn: Project is vulnerable to: GHSA-gww7-p5w4-wrfv","Warn: Project is vulnerable to: GHSA-h3cw-g4mq-c5x2","Warn: Project is vulnerable to: GHSA-h4rc-386g-6m85","Warn: Project is vulnerable to: GHSA-h822-r4r5-v8jg","Warn: Project is vulnerable to: GHSA-j823-4qch-3rgm","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-m6x4-97wx-4q27","Warn: Project is vulnerable to: GHSA-mc6h-4qgp-37qh","Warn: Project is vulnerable to: GHSA-mph4-vhrx-mv67","Warn: Project is vulnerable to: GHSA-mx7p-6679-8g3q","Warn: Project is vulnerable to: GHSA-p43x-xfjf-5jhr","Warn: Project is vulnerable to: GHSA-q93h-jc49-78gg","Warn: Project is vulnerable to: GHSA-qjw2-hr98-qgfh","Warn: Project is vulnerable to: GHSA-qmqc-x3r4-6v39","Warn: Project is vulnerable to: GHSA-r3gr-cxrf-hg25","Warn: Project is vulnerable to: GHSA-r695-7vr9-jgc2","Warn: Project is vulnerable to: GHSA-rf6r-2c4q-2vwg","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-rpr3-cw39-3pxh","Warn: Project is vulnerable to: GHSA-v3xw-c963-f5hc","Warn: Project is vulnerable to: GHSA-v585-23hc-c647","Warn: Project is vulnerable to: GHSA-vfqx-33qm-g869","Warn: Project is vulnerable to: GHSA-wh8g-3j2c-rqj5","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-mvr2-9pj6-7w5j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T15:52:25.993Z","repository_id":41224889,"created_at":"2025-08-20T15:52:25.993Z","updated_at":"2025-08-20T15:52:25.993Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-client","image-optimization","maven-pom"],"created_at":"2026-01-14T02:52:52.496Z","updated_at":"2026-01-14T02:52:54.248Z","avatar_url":"https://github.com/kraken-io.png","language":"Java","readme":"# Kraken.io java client\n\n## Introduction\n[Kraken.io's](https://kraken.io/) image optimization API provides advanced optimization for your JPEG, PNG, GIF and SVG images.\nEstablished in 2012, Kraken.io is an industry-leading image optimizer like no other capable of significantly reducing the file size of popular image formats using tried-and-tested optimization techniques developed with a single goal in mind: To reduce their file size by as much as possible while retaining the image quality.\n\nKraken.io's API includes image resizing, in addition to its core optimization functionality, for those who need to resize their images prior to optimization.\n\n**Kraken.io is trusted by thousands of customers worldwide, from individuals to small/medium sized businesses and even Fortune 500 companies.**\n\n## Benefits of image optimization\nIn nutshell, faster loading sites are viewed more favourably than slower loading sites by both users and search engines. Getting your site to load faster can go a long way to improving your business's bottom line. For more information, visit our [Support Center](https://support.kraken.io/).\n\nGot a question? Need some help? Get in touch with Kraken.io support, which is easily visible when logged in to Kraken.io.\n\n\n## Kraken.io is more than just an API\nFor our complete list of API functionality, integration modules, third party plugins, and more, please visit our [official documentation website](https://kraken.io/docs/getting-started).\n\nYou can try us out by creating a [free account](https://kraken.io/signup) and/or visiting out our [Free Web Interface](https://kraken.io/web-interface).\n\n## Compatibility\n- Java 6+\n\n## Dependencies\n\n### Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.kraken.client\u003c/groupId\u003e\n    \u003cartifactId\u003eclient\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## How to use\n\n### Builders\nName                                | Description\n----------------------------------- | --------------------------------------------------\n DirectFileUploadRequest            | Upload based on a File\n DirectUploadRequest                | Upload based on a InputStream\n ImageUrlUploadRequest              | Image url request\n DirectFileUploadCallbackUrlRequest | Upload based on a File with callback url\n DirectUploadCallbackUrlRequest     | Upload based on a InputStream with a callback url\n ImageUrlUploadCallbackUrlRequest   | Image url request with callback url\n \n### Resize\nName                | Description\n------------------- | --------------------------------------------------------------------------------\n AutoResize         | The best strategy (portrait or landscape) will be selected for a given image according to its aspect ratio\n CropResize         | This option will crop your images to the exact size you specify with no distortion\n ExactResize        | Resize to exact width and height. Aspect ratio will not be maintained\n FillResize         | This strategy allows you to resize the image to fit the specified bounds while preserving the aspect ratio (just like auto strategy). The optional background property allows you to specify a color which will be used to fill the unused portions of the previously specified bounds\n FitResize          | This option will crop and resize your images to fit the desired width and height\n LandscapeResize    | Exact width will be set, height will be adjusted according to aspect ratio\n PortraitResize     | Exact height will be set, width will be adjusted according to aspect ratio\n SquareResize       | This strategy will first crop the image by its shorter dimension to make it a square, then resize it to the specified size\n\n### Direct image upload\n\n```java\n  final KrakenIoClient krakenIoClient = new DefaultKrakenIoClient(\"somekey\", \"somesecret\");\n\n  // InputStream direct file upload\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final DirectUploadRequest directUploadRequest = DirectUploadRequest.builder(\n    new ByteArrayInputStream(loadFileBinary(\"test.jpg\"))\n  )\n  .withResize(fillResize)\n  .build();\n  \n  try {\n      final SuccessfulUploadResponse successfulUploadResponse = krakenIoClient.directUpload(directUploadRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n  \n  // File based direct file upload\n  final File image = new File(\"path/to/file.jpg\");\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final DirectFileUploadRequest directFileUploadRequest = DirectFileUploadRequest.builder(image)\n  .withResize(fillResize)\n  .build();\n  \n  try {\n      final SuccessfulUploadResponse successfulUploadResponse = krakenIoClient.directUpload(directFileUploadRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n  \n  // InputStream direct upload with callback url\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final DirectUploadCallbackUrlRequest directUploadCallbackUrlRequest = DirectUploadCallbackUrlRequest.builder(\n    new ByteArrayInputStream(loadFileBinary(\"test.jpg\")), \n    new URL(\"http://somehost/somecallback\")\n  )\n  .withResize(fillResize)\n  .build();\n  \n  try {\n      final SuccessfulUploadCallbackUrlResponse successfulUploadCallbackUrlResponse = krakenIoClient.directUpload(directUploadCallbackUrlRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n  \n  // File based direct upload with callback url\n  final File image = new File(\"path/to/file.jpg\");\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final DirectFileUploadCallbackUrlRequest directFileUploadCallbackUrlRequest = DirectFileUploadCallbackUrlRequest.builder(\n    image, \n    new URL(\"http://somehost/somecallback\")\n  )\n  .withResize(fillResize)\n  .build();\n  \n  try {\n      final SuccessfulUploadCallbackUrlResponse successfulUploadCallbackUrlResponse = krakenIoClient.directUpload(directFileUploadCallbackUrlRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n```\n\n### Image url\n```java\n  // Image url request\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final ImageUrlUploadRequest imageUrlUploadRequest = ImageUrlUploadRequest.builder(\n    new URL(\"http://somehost/image\")\n  )\n  .withResize(fillResize)\n  .build();\n  \n  try {\n      final SuccessfulUploadResponse successfulUploadResponse = krakenIoClient.imageUrlUpload(imageUrlUploadRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n  \n  // Image url with callback url request\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final ImageUrlUploadCallbackUrlRequest imageUrlUploadCallbackUrlRequest = ImageUrlUploadCallbackUrlRequest\n                .builder(new URL(\"http://somehost/image\"), new URL(\"http://somehost/somecallback\"))\n                .withResize(fillResize)\n                .build();\n  try {\n      final SuccessfulUploadCallbackUrlResponse successfulUploadCallbackUrlResponse = krakenIoClient.imageUrlUpload(imageUrlUploadCallbackUrlRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n```\n\n### Access the API Sandbox\n```java\n  final FillResize fillResize = new FillResize(150, 150, new RGBA(100, 100, 100, BigDecimal.ONE));\n  final DirectUploadRequest directUploadRequest = DirectUploadRequest.builder(\n    new ByteArrayInputStream(loadFileBinary(\"test.jpg\"))\n  )\n  .withDev(true) // Sandbox mode\n  .build();\n\n  try {\n      final SuccessfulUploadResponse successfulUploadResponse = krakenIoClient.directUpload(directUploadRequest);\n  } catch(KrakenIoRequestException e) {\n      final FailedUploadResponse failedUploadResponse = e.getFailedUploadResponse();\n  }\n```\n\nContribution\n------------\n\nAny contributions are highly appreciated. The best way to contribute code is to open a\n[pull request on GitHub](https://help.github.com/articles/using-pull-requests).\n\n## License\nApache License, Version 2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkraken-io%2Fkraken-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkraken-io%2Fkraken-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkraken-io%2Fkraken-java/lists"}