webp4j

Simple Java lib for encoding/decoding WebP image format

License

License

GroupId

GroupId

com.github.zakgof
ArtifactId

ArtifactId

webp4j
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

webp4j
Simple Java lib for encoding/decoding WebP image format
Project URL

Project URL

https://github.com/zakgof/webp4j.git
Source Code Management

Source Code Management

https://github.com/zakgof/webp4j

Download webp4j

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.zakgof/webp4j/ -->
<dependency>
    <groupId>com.github.zakgof</groupId>
    <artifactId>webp4j</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.zakgof/webp4j/
implementation 'com.github.zakgof:webp4j:0.0.2'
// https://jarcasting.com/artifacts/com.github.zakgof/webp4j/
implementation ("com.github.zakgof:webp4j:0.0.2")
'com.github.zakgof:webp4j:jar:0.0.2'
<dependency org="com.github.zakgof" name="webp4j" rev="0.0.2">
  <artifact name="webp4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.zakgof', module='webp4j', version='0.0.2')
)
libraryDependencies += "com.github.zakgof" % "webp4j" % "0.0.2"
[com.github.zakgof/webp4j "0.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scijava : native-lib-loader jar 2.3.2

Project Modules

There are no modules declared in this project.

webp4j

Simple Java webp image format encoder and decoder

WebP images are claimed to be 25-34% smaller than comparable JPEG images at equivalent SSIM quality index. https://developers.google.com/speed/webp/

webp4j uses JNI to link to native libwebp libraries (included into distribution jar).

Supported platforms:

  • Linux 32/64 bit
  • Windows 32/64 bit

Webp4j is on Bintray

Travis CI https://bintray.com/zakgof/maven/webp4j

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.zakgof:webp4j:0.0.2'
}

Usage

// Encode
BufferedImage bi = ...
float quality = 80f;
byte[] bytes = Webp4j.encode(bi, quality);

// Decode
BufferedImage restored = Webp4j.decode(bytes);

Versions

Version
0.0.2
0.0.1