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;
Tested under 64 bit Lazarus and 64 bit Delphi 12.
Should work under other 64 bit Delphis. Needs tests under 32 bit Lazarus and 32 bit Delphi.
This unit uses libheif.DLLThe 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
Linux (Debian, Ubuntu, Mint)RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3