Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.19 KB

Build Status

ImgFlo-URL.java

Conveniently produce authorized imgflo URLs on the JVM.

Usage

Library

Graph graph = new Graph.Passthrough(100, 100);
String input = "https://example.org/image.png";

String result = imgFloUrl.build(graph, input);

Standalone

Experimental, only supports passthrough graph without parameters

$ git clone https://github.com/the-grid/imgflo-url-java.git
$ cd imgflo-url-java
$ export IMGFLO_SERVER=https://example.org
$ export IMGFLO_KEY=example-key
$ export IMGFLO_SECRET=example-secret
$ ./gradlew :standalone:jar
$ java -jar standalone/build/libs/standalone.jar "http://example.org/my-image.jpg"

Installation

Find the latest version.

Gradle

compile 'io.thegrid.imgflourl:imgflourl:[latest-version]'

Maven

<dependency>
  <groupId>io.thegrid.imgflourl</groupId>
  <artifactId>imgflourl</artifactId>
  <version>[latest version]</version>
</dependency>

License

MIT