Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Announcements
»
Third party
»
Reading and writing AVIF and HEIC in Lazarus
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Using Lazarus to teach In...
by
Thaddy
[
Today
at 04:27:11 pm]
FPC 3.2.4-rc1 available
by
Thausand
[
Today
at 04:04:03 pm]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 03:55:47 pm]
CORE-MATH 32bits in Pasca...
by
Thaddy
[
Today
at 03:50:12 pm]
504 Gateway Timeout
by
Martin_fr
[
Today
at 03:28:06 pm]
Problem with MariaDB and ...
by
OH1KH
[
Today
at 03:26:54 pm]
Feature announcement: Fun...
by
Thaddy
[
Today
at 01:47:33 pm]
Little bit...
by
Thaddy
[
Today
at 01:24:47 pm]
Elite Arcade
by
nomorelogic
[
Today
at 01:16:40 pm]
IDE Coolbar
by
staratel20
[
Today
at 01:00:32 pm]
Midi to Wav Converter
by
Thaddy
[
Today
at 12:28:47 pm]
Pure Pascal ZPAQ and ZSTD
by
Tomxe
[
Today
at 11:48:23 am]
AmigaOS can't run program...
by
Trenatos
[
Today
at 11:30:22 am]
Lazarus and FreePascal on...
by
jwdietrich
[
Today
at 10:44:37 am]
Space Duel
by
Tomi
[
Today
at 09:18:22 am]
Call the Llama.cpp dynami...
by
LeP
[
Today
at 09:11:38 am]
Is there a "known good" c...
by
Thaddy
[
Today
at 08:07:46 am]
Can I get the position an...
by
CM630
[
Today
at 07:29:22 am]
Lazarus 4.6 on macOS 10.1...
by
wpostma
[
Today
at 03:30:20 am]
Forums were down, and are...
by
wpostma
[
Today
at 03:26:20 am]
Untitled raycaster game (...
by
flowCRANE
[
Today
at 01:17:56 am]
Change original package o...
by
pmralbuquerque
[April 19, 2026, 07:55:14 am]
Can /my/ AI help me with ...
by
domasz
[April 19, 2026, 07:23:35 am]
PasLLM - LLM Inference En...
by
Thaddy
[April 19, 2026, 06:57:20 am]
Amigo programming languag...
by
paxscript
[April 19, 2026, 06:32:55 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reading and writing AVIF and HEIC in Lazarus (Read 1703 times)
Tomxe
Jr. Member
Posts: 51
Reading and writing AVIF and HEIC in Lazarus
«
on:
February 06, 2025, 02:34:13 pm »
Hello!
A fresh unit, just released under MIT license:
https://github.com/Xelitan/AVIF-and-HEIC-for-Delphi-Lazarus/
Example:
Code: Pascal
[Select]
[+]
[-]
Image1
.
Picture
.
LoadFromFile
(
'test.heic'
)
;
Image1
.
Picture
.
LoadFromFile
(
'test.avif'
)
;
Saving:
Code: Pascal
[Select]
[+]
[-]
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
;
All input welcome!
Logged
Okoba
Hero Member
Posts: 654
Re: Reading and writing AVIF and HEIC in Lazarus
«
Reply #1 on:
February 09, 2025, 08:25:04 am »
Thank you Tomxe! For these and FLIF. Great to have the ability. You should check with @circular, as they may want to add these to BGRABitmap. Post on the forum
https://forum.lazarus.freepascal.org/index.php/board,46.0.html
Logged
Boleeman
Hero Member
Posts: 1141
Re: Reading and writing AVIF and HEIC in Lazarus
«
Reply #2 on:
February 09, 2025, 12:01:52 pm »
I also stumbled across the Lazarus AVIF and HEIC code.
Can't wait to play around with it and make some high definition animations.
Just amazing Tomxe from Poland.
Logged
fozkan
New member
Posts: 8
Re: Reading and writing AVIF and HEIC in Lazarus
«
Reply #3 on:
February 13, 2025, 11:48:38 am »
Thank you for this helpful wrapper. What are the details of DLLs (License, Origin...)?
Logged
Tomxe
Jr. Member
Posts: 51
Re: Reading and writing AVIF and HEIC in Lazarus
«
Reply #4 on:
February 13, 2025, 08:59:14 pm »
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
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Announcements
»
Third party
»
Reading and writing AVIF and HEIC in Lazarus
TinyPortal
© 2005-2018