ImageEn, unit iexHeif

LibHeif PlugIn


LibHeif is an open source library that allows ImageEn to read and write HEIF and AVIF files.
You can create lossless lossless Heif files, as well as varying the compression.
Codec version information is available with WIC_CodecInfo

Notes
The LibHeif plug-in requires you to ship libheif.dll and associated DLLs. These files are included in the \DLL\Heif\ folder of the ImageEn installation
ImageEn requires four library files: libheif.dll, dav1d.dll, de265.dll, libx265.dll. There are 32bit and 64bit versions available
The plug-in must be registered once by your application
Requires Delphi/C++Builder 2009 or newer

Demo

Demo  Demos\ImageEditing\CompleteEditor\PhotoEn.dpr

Examples

// Register the Heif Plug-In
IEGlobalSettings().RegisterPlugIns([ iepiHeif ]);

// Save an image to a Heif file with 80% quality
ImageEnView1.IO.Params.ImageQuality := 0.80;
ImageEnView1.IO.SaveToFileHeif( 'D:\image.heif' );

// Save an image to a lossless Heif
ImageEnView1.IO.Params.Lossless := True;
ImageEnView1.IO.SaveToFileHeif( 'D:\image.heif' );

// Save an image as a high quality lossy AVIF file
ImageEnView1.IO.Params.Lossless := True;
ImageEnView1.IO.Params.ImageQuality := 30;
ImageEnView1.IO.SaveToFileHeif( 'D:\image.avif' );

License Information

LibHeif is distributed under the terms of the GNU Lesser General Public License.

Copyright © 2017-2020 Struktur AG
Copyright © 2017-2026 Dirk Farin
Contact: Dirk Farin dirk.farin@gmail.com

Based on work by: Struktur AG

See Also

#Heif Tags
ImageEn DLLs