Skip to content

Read & write AVIF and HEIC images in Delphi, Free Pascal and Lazarus

License

Notifications You must be signed in to change notification settings

Xelitan/AVIF-and-HEIC-for-Delphi-Lazarus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVIF and HEIC for Delphi, Free Pascal/Lazarus

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.

Usage examples

Using TImage / TPicture

Image1.Picture.LoadFromFile('test.heic');
Image1.Picture.LoadFromFile('test.avif');

Using classes directly

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.DLL

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

About

Read & write AVIF and HEIC images in Delphi, Free Pascal and Lazarus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages