Skip to content

imgflo/imgflo-url-java

Repository files navigation

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

About

Conveniently produce authorized imgflo URLs on the JVM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages