https://github.com/rocketbase-io/imgproxy-java
fluently generate asset urls for img-proxy within java
https://github.com/rocketbase-io/imgproxy-java
fluent imgproxy java
Last synced: 9 months ago
JSON representation
fluently generate asset urls for img-proxy within java
- Host: GitHub
- URL: https://github.com/rocketbase-io/imgproxy-java
- Owner: rocketbase-io
- License: mit
- Created: 2019-11-05T12:38:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T21:44:39.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T00:59:28.198Z (9 months ago)
- Topics: fluent, imgproxy, java
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgproxy-java


[](https://mvnrepository.com/artifact/io.rocketbase.asset/imgproxy)
fluently generate asset urls for img-proxy within java
## example usage
````java
// simple unsigned
String url = Signature.of(new SignatureConfiguration(BASE_URL))
.size(300, 300)
.url(SOURCE_URL)
// advanced with key + salt
Signature signature = Signature.of(new SignatureConfiguration(imgproxyProperties.getBaseurl(),
imgproxyProperties.getKey(),
imgproxyProperties.getSalt()));
signature.resize(ResizeType.fit, 300, 300, true);
String url = signature.url("s3://bucket-name/" + assetReference.getUrlPath());
````