Java HEIC Writer
Java’s built-in ImageIO does not support writing HEIC files. JDeli is a 100% Java HEIC writer that provides full encoding control with no dependencies.
Getting started
Add JDeli to your project via Maven or Gradle, or see using JDeli with Java modules.
Key features:
- 100% Java solution. No dlls or dependencies on native code
- easy to use
Quick start or to replace in existing code using ImageIO:
JDeli.write(myBufferedImage, "heic", outputStreamOrFile);
or
byte[] outputData = JDeli.write(myBufferedImage, "heic");
Simple usage
JDeli.write(myBufferedImage, OutputFormat.HEIC, outputStreamOrFile);
OutputFormat allows setting of any supported Image Format
For complete control of output:
final HeicEncoderOptions options = new HeicEncoderOptions();
//write out
JDeli.write(myBufferedImage, options, outputStreamOrFile);
HeicEncoderOptions allows setting of specific options.
Various image processing operations can be conducted on the image, detailed documentation can be found here.
Frequently asked questions
Can Java write or encode HEIC files without external libraries?
No. Java’s built-in ImageIO does not support writing or encoding HEIC files. JDeli provides a pure-Java HEIC encoder with no dependencies required.
Does writing or encoding HEIC in Java with JDeli require additional libraries?
No. JDeli is a 100% Java library with no dependencies. It runs on any platform where the JVM runs with no additional installation.
What output types does JDeli support for writing HEIC?
JDeli can write and encode HEIC to a File, OutputStream, or return the encoded data as a byte array.