Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main/java/co/selim/thumbnail4j
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
jitpack.yml
settings.gradle

README.md

thumbnail4j

Java wrapper for convert.

Prerequisites

  • convert in your PATH
  • Java 9

Including thumbnail4j in a project

First, add thumbnail4j to your dependencies using the jitpack repository.

Usage

URI fileUri = new File("bird.JPG").toURI(); // or Paths.get("bird.JPG").toUri();
byte[] thumbnail = new ThumbnailCreator().createThumbnail(1024, fileUri);