Sample project for integrating libjpeg-turbo as a library on Android.
Since AWT is not supported on Android, only a subset of the TurboJPEG API can be used.
.aar binaries for integrating libjpeg-turbo directly into your app are available on the releases page.
- Unzip the file
libjpeg-turbo-2.1.1-***-release.aar.zip. - Place the
.aarfile into theapp/libsfolder. - Add the following snippet to the
dependenciessection ofapp/build.gradle:
implementation files('libs/libjpeg-turbo-2.1.1-***-release.aar.zip')
This sample is licensed under the MIT License.
libjpeg-turbo is covered by three compatible BSD-style open source licenses. Please see the license text for libjpeg-turbo here.
Sample image Bird Shore Animal licensed under the CC0 license from https://negativespace.co/bird-shore-animal/.