Read & write AVIF and HEIC images in Delphi, Free Pascal and Lazarus
Requires .DLL files (included). For Linux and MacOS you need to download binaries from libheif project.
Image1.Picture.LoadFromFile('test.heic');
Image1.Picture.LoadFromFile('test.avif');
var a: TAvifImage;
h: THeicImage;
begin
Image1.Picture.LoadFRomFile('test.bmp');
a := TAvifImage.Create;
a.Assign(Image1.Picture.Bitmap);
a.SaveToFile('test1.avic');
a.free;
h := THeicImage.Create;
h.Assign(Image1.Picture.Bitmap);
h.SaveToFile('test1.heic');
h.free;
end;
Should work under other 64 bit Delphis. Needs tests under 32 bit Lazarus and 32 bit Delphi.
The libheif is distributed under the terms of the GNU Lesser General Public License. Copyright (c) 2017-2020 Struktur AG Copyright (c) 2017-2024 Dirk Farin Contact: Dirk Farin dirk.farin@gmail.com