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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
GTK3 still alpha
by
rca
[
Today
at 03:06:56 am]
Force parameters of my ap...
by
TRon
[
Today
at 03:02:47 am]
Pasettimino - Ethernet co...
by
avra
[
Today
at 02:54:29 am]
Scrolling the form.
by
OC DelGuy
[
Today
at 02:48:17 am]
raylib and addons
by
Guva
[
Today
at 02:11:58 am]
Remote access to database...
by
duralast
[
Today
at 12:29:27 am]
New 2D StarField
by
Gigatron
[March 18, 2025, 11:19:00 pm]
NIL vs. Assign: when to u...
by
440bx
[March 18, 2025, 10:07:02 pm]
New version of BGRABitmap
by
sstvmaster
[March 18, 2025, 09:13:12 pm]
Sets Vs Arrays. When to ...
by
440bx
[March 18, 2025, 08:57:02 pm]
efficiency problem
by
PascalDragon
[March 18, 2025, 08:48:11 pm]
Connection to MySQL versi...
by
iginfo
[March 18, 2025, 08:32:32 pm]
Internal error
by
PascalDragon
[March 18, 2025, 08:24:30 pm]
Pagecontrol - Tabsheet ca...
by
Martin_fr
[March 18, 2025, 08:22:41 pm]
Dialogs and TTimer inside...
by
d2010
[March 18, 2025, 08:13:19 pm]
Add,update and delete by ...
by
wcage03
[March 18, 2025, 07:42:11 pm]
DbGrid or TSQLQuery best ...
by
wcage03
[March 18, 2025, 07:32:28 pm]
Converting a Project from...
by
wcage03
[March 18, 2025, 07:25:26 pm]
Undefined symbol: WSRegis...
by
d2010
[March 18, 2025, 07:15:20 pm]
TValueListEditor wont acc...
by
paule32
[March 18, 2025, 07:04:33 pm]
File open or File close -...
by
paule32
[March 18, 2025, 06:48:39 pm]
How To: Create and React ...
by
zxandris
[March 18, 2025, 05:19:20 pm]
Cursor changes to arrow o...
by
atlatl
[March 18, 2025, 05:16:44 pm]
dmg may contain virus
by
turunk
[March 18, 2025, 05:02:19 pm]
i have function named sho...
by
Thaddy
[March 18, 2025, 04:33:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reading and writing AVIF and HEIC in Lazarus (Read 980 times)
Tomxe
New Member
Posts: 37
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: 616
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: 833
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
Newbie
Posts: 4
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
New Member
Posts: 37
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