Skip to content

flaviotruzzi/webp-imageio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Java Image I/O reader and writer for the Google WebP image format.

License

webp-imageio is distributed under the Apache Software License version 2.0.

Usage

  • Add webp-imageio.jar to the classpath of your application
  • Ensure libwebp-imageio.so, libwebp-imageio.dylib or webp-imageio.dll is accessible on the Java native library path (java.library.path system property)
  • The WebP reader and writer can be used like any other Image I/O reader and writer.

Compiling

Compiling the native library

  • Install CMake 2.8 or newer. CMake can be downloaded from www.cmake.org or installed using your systems package manager.
  • Create a directory called 'build' in the root of the project
  • Open a terminal and navigate to the newly created 'build' directory
  • Run 'cmake ..' in the 'build' directory to generate the build scripts for your system.
  • 'cmake --build .' to compile the library
  • The compiled library can be found under the directory 'build/src/main/c'

Compiling the Java library

Using Buildr

  • Install Buildr
  • Run 'buildr package test=false' in the root of the project
  • The compiled Java library can be found under the 'target' directory

Using Maven

  • Install Maven
  • Run 'mvn -Dmaven.test.skip=true package' in the root of the project
  • The compiled Java library can be found under the 'target' directory