Recent

Author Topic: How to extract metadata from an image?  (Read 590 times)

cpalx

  • Hero Member
  • *****
  • Posts: 652
How to extract metadata from an image?
« on: February 20, 2021, 09:36:47 pm »
I have Lazarus 2.0.10, FPC 3.2

i would like to know, how to extract metadata from an image file

size
resolution
Color Space
Presicion
Comments

and if have geoinformation, too.

Please help.

GAN

  • Sr. Member
  • ****
  • Posts: 323
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3

https://searchlazarus.blogspot.com/

speter

  • Full Member
  • ***
  • Posts: 191
Re: How to extract metadata from an image?
« Reply #2 on: February 20, 2021, 11:56:07 pm »
You could maybe use the EXIF library, see the thread below
https://forum.lazarus.freepascal.org/index.php/topic,49648.msg360764.html#msg360764

cheers
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

Laz 2.0.10 / FPC 3.2.0 / Windows 10 (64bit)

lucamar

  • Hero Member
  • *****
  • Posts: 3872
Re: How to extract metadata from an image?
« Reply #3 on: February 21, 2021, 12:12:11 am »
You could maybe use the EXIF library,

I was going to suggest the same: fpexif, because I had some problems with some Delphi-specific* sections of dExif.

Though that was some years ago; it may well be corrected by now ...


* TBH, I don't remember if it was Delphi-specific or some breaking changes in Lazarus/FPC. I think is was the first, but I might be wrong.
« Last Edit: February 21, 2021, 12:16:12 am by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

cpalx

  • Hero Member
  • *****
  • Posts: 652
Re: How to extract metadata from an image?
« Reply #4 on: February 26, 2021, 10:31:29 pm »
thanks to all

bazinga!

  • Newbie
  • Posts: 4
Re: How to extract metadata from an image?
« Reply #5 on: March 02, 2021, 03:16:26 pm »
I was looking for this too. Thanks a bunch. :D

 

TinyPortal © 2005-2018