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
Uppercase in Keypress
by
Petrus Vorster
[
Today
at 12:23:45 pm]
FPC 3.2.2 - maximum Lengt...
by
440bx
[
Today
at 12:14:55 pm]
MVP made easier.
by
Hansvb
[
Today
at 12:06:47 pm]
Colored Triangled Tunnel ...
by
Boleeman
[
Today
at 12:03:30 pm]
[solved] macro for code ?
by
Joanna from IRC
[
Today
at 11:38:42 am]
debugger not showing vari...
by
Martin_fr
[
Today
at 10:56:42 am]
Lazarus on Linux but Targ...
by
Sakkie
[
Today
at 10:52:08 am]
unable to change a Splitt...
by
Hansvb
[
Today
at 09:08:15 am]
FPC 3.2.2 using Result wi...
by
Thaddy
[
Today
at 08:06:26 am]
Metaballs: Let's get toge...
by
Guva
[
Today
at 05:11:13 am]
Named range
by
dbannon
[
Today
at 01:04:29 am]
Amigo programming languag...
by
TRon
[
Today
at 12:51:01 am]
[SOLVED] WebP images and ...
by
lainz
[
Today
at 12:31:49 am]
FPC 3.2.2 + Lazarus 3.4 C...
by
paule32
[April 23, 2025, 11:18:59 pm]
Knob Finger Spinner Graph...
by
circular
[April 23, 2025, 10:15:44 pm]
Snaking ZigZag Curve: PRO...
by
Handoko
[April 23, 2025, 10:12:04 pm]
Library: Embed DLL in EXE
by
Tomxe
[April 23, 2025, 09:57:37 pm]
Writing a TMemo widget fr...
by
paule32
[April 23, 2025, 08:38:32 pm]
ChatGPT and algorithms
by
TBMan
[April 23, 2025, 06:18:46 pm]
Deleting exe-file not wor...
by
d2010
[April 23, 2025, 06:14:27 pm]
Math.RoundTo incorrect so...
by
BeniBela
[April 23, 2025, 04:07:40 pm]
2d "platform" game sugges...
by
TBMan
[April 23, 2025, 03:47:29 pm]
Rain Simulator
by
Boleeman
[April 23, 2025, 02:57:30 pm]
Turbo Pascal's default fo...
by
Thaddy
[April 23, 2025, 02:34:28 pm]
More AI hype?
by
Joanna from IRC
[April 23, 2025, 02:01:16 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reading and writing AVIF and HEIC in Lazarus (Read 1012 times)
Tomxe
New Member
Posts: 43
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: 885
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: 5
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: 43
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