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
Fast Fourier Transform (F...
by
Thaddy
[
Today
at 12:02:39 pm]
[SOLVED] suddenly i have ...
by
CharlyTango
[
Today
at 11:29:56 am]
Problems with Lazaruz 3.8...
by
salvadordf
[
Today
at 11:22:35 am]
"database not open" - IBX...
by
CharlyTango
[
Today
at 11:20:22 am]
Weird error: component no...
by
wp
[
Today
at 10:22:28 am]
Very Slow Online Package ...
by
Marc
[
Today
at 09:52:13 am]
Velthuis.Console.pas - Wo...
by
Thaddy
[
Today
at 08:55:31 am]
No fpc found on a fresh i...
by
Thaddy
[
Today
at 08:30:15 am]
Lazarus is not working
by
Thaddy
[
Today
at 08:18:33 am]
Rest API chunk file downl...
by
daniel_sap
[
Today
at 07:49:00 am]
Peano Fractals: Rainbow t...
by
Boleeman
[
Today
at 07:19:37 am]
Drive a tank around the s...
by
Boleeman
[
Today
at 06:22:40 am]
DuckHunter Game
by
TRon
[
Today
at 04:19:56 am]
Saving a TImage with a tr...
by
EganSolo
[
Today
at 03:05:03 am]
NIL vs. Assign: when to u...
by
440bx
[
Today
at 01:08:36 am]
Lazarus Instalation Error...
by
TRon
[March 24, 2025, 10:19:44 pm]
How to download/compile l...
by
Theo11
[March 24, 2025, 09:33:30 pm]
IDE tabs and spaces, auto...
by
Martin_fr
[March 24, 2025, 09:17:07 pm]
(Solved) Illegal paramete...
by
PascalDragon
[March 24, 2025, 09:03:12 pm]
MOVED: Trunk 3.3.1 access...
by
PascalDragon
[March 24, 2025, 08:58:18 pm]
Test Regular Expressions
by
Gustavo 'Gus' Carreno
[March 24, 2025, 07:42:00 pm]
GTK3 still alpha
by
han
[March 24, 2025, 05:46:27 pm]
mxMarkEdit as reference m...
by
maxnd
[March 24, 2025, 04:38:51 pm]
[Solved] How to get and u...
by
Hansaplast
[March 24, 2025, 04:19:31 pm]
lazarus-darwin-aarch64-3....
by
Jon Trepte
[March 24, 2025, 03:27:39 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reading and writing AVIF and HEIC in Lazarus (Read 991 times)
Tomxe
New Member
Posts: 40
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: 842
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: 40
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