Giter Site home page Giter Site logo

chunky-jpegxl-plugin's Introduction

Chunky plugin for JPEG-XL export

This is a plugin for chunky that add an option to export the render as a JPEG-XL image.

Usage

This plugin is not really user-friendly and requires the user to build it themself.

JPEG-XL being a brand-new image format (as of February 2021), the only library able to encode (and decode) them is the reference implementation so you need to follow their instructions to build it and install it.

Next step is to build the native dynamic library of this plugin, the code is in the src/native folder. Build the library with

cd src/native
mkdir build
cd build
cmake ..
cmake --build .

This will build the dynamic library (jpegxl_writer.dll or libjepgxl_writer.so) in the src/native/build directory. Copy this file in the src/main/resources directory

You can now build the java part of the plugin by running

./gradlew jar

and retrieve the .jar file in the build/libs directory (and add it as plugin to chunky).

Last thing te be careful of is the libjxl and libjxl_threads need to be found by the OS when the native library of the plugin is loaded. This means adding the directory where those library reside to the PATH environment variable used to locate dynamic library (that is $PATH on Windows and $LD_LIBRARY_PATH on linux). For example on my system, the libjxl is installed in /usr/local/lib so I run

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH;/usr/local/lib"
java -jar ChunkyLauncher.jar

To run chunky while making sure the library will be located.

chunky-jpegxl-plugin's People

Contributors

atom3333 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.