GitPedia

Tinify java

Java client for the Tinify API.

From tinify·Updated March 30, 2026·View on GitHub·

**tinify java** is a Java client for the Tinify API. The project is written primarily in Java, distributed under the MIT License license, first published in 2015. Key topics include: android, image-compression, image-optimization, java, java-library.

Latest release: 1.8.9
March 17, 2026View Changelog →

Maven Central
MIT License
Java CI/CD

Tinify API client for Java

Java client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com.

Documentation

Go to the documentation for the Java client.

Installation

Install the API client via Maven:

xml
<dependency> <groupId>com.tinify</groupId> <artifactId>tinify</artifactId> <version>1.8.8</version> </dependency>

Usage

java
import com.tinify.*; import java.io.IOException; public class Compress { public static void main(String[] args) throws java.io.IOException { Tinify.setKey("YOUR_API_KEY"); Tinify.fromFile("unoptimized.png").toFile("optimized.png"); } }

Running tests

mvn test

Integration tests

TINIFY_KEY=$YOUR_API_KEY mvn -Pintegration integration-test

License

This software is licensed under the MIT License. View the license.

Contributors

Showing top 10 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from tinify/tinify-java via the GitHub API.Last fetched: 6/14/2026