{"id":18896150,"url":"https://github.com/tinify/tinify-java","last_synced_at":"2026-03-17T14:07:56.920Z","repository":{"id":36060611,"uuid":"40359352","full_name":"tinify/tinify-java","owner":"tinify","description":"Java client for the Tinify API.","archived":false,"fork":false,"pushed_at":"2025-03-19T07:58:39.000Z","size":427,"stargazers_count":138,"open_issues_count":0,"forks_count":40,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-13T11:50:14.842Z","etag":null,"topics":["android","image-compression","image-optimization","java","java-library","tinyjpg","tinypng"],"latest_commit_sha":null,"homepage":"https://tinypng.com/developers","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-08-07T12:28:04.000Z","updated_at":"2025-04-04T13:00:58.000Z","dependencies_parsed_at":"2023-12-20T13:30:36.665Z","dependency_job_id":"9a0fe5e1-a080-4583-a6de-7f2f1948c74e","html_url":"https://github.com/tinify/tinify-java","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinify","download_url":"https://codeload.github.com/tinify/tinify-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501557,"owners_count":22081528,"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":["android","image-compression","image-optimization","java","java-library","tinyjpg","tinypng"],"created_at":"2024-11-08T08:32:41.688Z","updated_at":"2026-03-17T14:07:56.865Z","avatar_url":"https://github.com/tinify.png","language":"Java","readme":"[![Maven Central](https://img.shields.io/maven-central/v/com.tinify/tinify.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tinify%22%20AND%20a%3A%22tinify%22)\n[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/tinify/tinify-java/blob/main/LICENSE)\n[![Java CI/CD](https://github.com/tinify/tinify-java/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/tinify/tinify-java/actions/workflows/ci-cd.yml)\n\n# Tinify API client for Java\n\nJava client for the Tinify API, used for [TinyPNG](https://tinypng.com) and [TinyJPG](https://tinyjpg.com). Tinify compresses your images intelligently. Read more at [http://tinify.com](http://tinify.com).\n\n## Documentation\n\n[Go to the documentation for the Java client](https://tinypng.com/developers/reference/java).\n\n## Installation\n\nInstall the API client via Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.tinify\u003c/groupId\u003e\n  \u003cartifactId\u003etinify\u003c/artifactId\u003e\n  \u003cversion\u003e1.8.8\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```java\nimport com.tinify.*;\nimport java.io.IOException;\n\npublic class Compress {\n  public static void main(String[] args) throws java.io.IOException {\n    Tinify.setKey(\"YOUR_API_KEY\");\n    Tinify.fromFile(\"unoptimized.png\").toFile(\"optimized.png\");\n  }\n}\n```\n\n## Running tests\n\n```\nmvn test\n```\n\n### Integration tests\n\n```\nTINIFY_KEY=$YOUR_API_KEY mvn -Pintegration integration-test\n```\n\n## License\n\nThis software is licensed under the MIT License. [View the license](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinify%2Ftinify-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-java/lists"}