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
TCHATGPT — An Artificial ...
by
marcelomaurinmartins@gmai
[
Today
at 02:20:11 am]
Single and Double, Conver...
by
kupferstecher
[
Today
at 12:52:11 am]
[New Component] ExtTabCtr...
by
d7_2_laz
[
Today
at 12:40:37 am]
Which Control should I us...
by
J-G
[June 14, 2026, 11:44:01 pm]
What am I missing here? [...
by
LeP
[June 14, 2026, 10:55:10 pm]
Mundo Medieval 3D MMORPG ...
by
Rodrigo Robles
[June 14, 2026, 05:26:38 pm]
Fast Canvas Library V1.05...
by
Gigatron
[June 14, 2026, 04:57:35 pm]
Can /my/ AI help me with ...
by
microxa
[June 14, 2026, 02:25:12 pm]
SynEdit theme
by
LemonParty
[June 14, 2026, 02:01:33 pm]
What happened to CocoaWSC...
by
Frank
[June 14, 2026, 01:31:19 pm]
Very rough version of a s...
by
Hansvb
[June 14, 2026, 12:44:31 pm]
Pdf Viewer in Pascal
by
Dzandaa
[June 14, 2026, 11:44:26 am]
Lazarus Bugfix Release 4....
by
Martin_fr
[June 13, 2026, 11:02:41 pm]
Error with last fixes_3.2...
by
Fred vS
[June 13, 2026, 10:49:27 pm]
Lazarus 4.8 on Sourceforg...
by
Enos68
[June 13, 2026, 08:00:47 pm]
Conscious Artificial Inte...
by
Dzandaa
[June 13, 2026, 05:59:22 pm]
If FileExists(
by
Bart
[June 13, 2026, 05:57:26 pm]
docked IDE and form capti...
by
Paolo
[June 13, 2026, 02:53:50 pm]
New version of LazMapView...
by
wp
[June 13, 2026, 12:09:27 pm]
PadXml 1.1.0 – Portable A...
by
AlexanderT
[June 13, 2026, 10:38:42 am]
Arkanoid
by
Tomi
[June 13, 2026, 09:46:46 am]
Interesting video
by
Joanna
[June 13, 2026, 06:24:53 am]
IndySecOpenSSL is now ava...
by
TheMouseAUS
[June 13, 2026, 03:49:17 am]
Message CM_ShowingChanged...
by
LeP
[June 13, 2026, 02:13:51 am]
[SOLVED]Program experienc...
by
Cainnech
[June 13, 2026, 12:19:17 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reading and writing AVIF and HEIC in Lazarus (Read 1764 times)
Tomxe
Full Member
Posts: 107
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: 660
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: 1158
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
Full Member
Posts: 107
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