Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2025-03

Access JPEG metadata

12 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arí Ricardo Ody

Hello everyone!

I need to write a program to access metadata from JPEG or JPG files.

I asked chatGPT for help and the explanations refer to a unit that is not found.

Then he tried to make me add a package that was also not found where it was indicated.

So after trying it myself, I conclude that I can't understand how to access the aforementioned metadata.

After these explanations, I respectfully ask if it would be possible for you to teach me the path I need to follow to access it.

Greetings from Sao Paulo - Brazil

Ar? Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250309/93b980a7/attachment.htm>

Reply by email

Andrea Mauri
to Werner Pamler

There is a library to add metadata to PNG too?

On Mon, 10 Mar 2025 at 00:56, Werner Pamler via lazarus <

Show quoted text 10 lines
wrote: Try fpExif: https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/fpexif/ -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250310/46424d6f/attachment.htm>

Reply by email

Andrea Mauri
to Rolf Wetjen

Does BGRABitmap support metadata in PNG format?

On Mon, 10 Mar 2025 at 13:05, Rolf Wetjen via lazarus <

Show quoted text 14 lines
wrote: Try BGRABitmap. I'm using BGRABitmap version 9.5 to show PNG images. Rolf -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250310/585cdd4b/attachment.htm>

Reply by email

Arí Ricardo Ody
to Werner Pamler: Try fpExif: https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/fpexif/

It's very difficult. The examples don't compile. Units are missing and it's not explained anywhere how and where to get them. I don't understand why people do this. They publish examples that don't compile. If they ever compile, will they work?
This almost seems like a bad joke.
[image: image.png]
[image: image.png]

On Sun, Mar 9, 2025 at 8:46?PM Werner Pamler via lazarus <

Show quoted text 10 lines
wrote: Try fpExif: https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/fpexif/ -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250316/c83232fe/attachment-0001.htm> -------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 11984 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250316/c83232fe/attachment-0002.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 42960 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250316/c83232fe/attachment-0003.png>

Reply by email

Werner Pamler
to Arí Ricardo Ody: It's very difficult. The examples don't compile. Units are missing and it's not explained…
Ar? Ricardo Ody wrote 5 lines
It's very difficult. The examples don't compile. Units are missing and it's not explained anywhere how and where to get them. I don't understand why people do this. They publish examples that don't compile. If they ever compile, will they work? This almost seems like a bad joke.

Not everything that you don't do correctly is a bad joke...

* Download the snapshot from the sourceforge link that I gave you
* Unzip the downloaded file into some directory
* In the IDE, go to "Package" > "Open Package File (*.lpk)". Navigate into the directory with the unzipped download. Open the lpk file, fpexif_pkg.lpk. That's all - the IDE now knows where it finds this package and all its units. If you want you can click "Compile" to see whether all package units compile correctly (they should...).
* Now all the sample project coming with the download should work.
* If you write a new project needing one of the fpexif units you must add the fpexif package to the requirements of the project: "Project"

"Project Inspector" > "Add" > "New Requirement" > Select

"fpexif_pk" from the package list in the "New requirement" dialog > "OK". Then you can add the fpexif unit(s) to the uses clauses.
* When you add fpexif to the project requirements then there is no need to copy any fpexif files into your project directory. (Of course you can, but then you must copy everything needed, and, if you put it into a subdirectory, you must add that to the unit path of the project, too)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250316/e4e1430d/attachment.htm>

Reply by email

Werner Pamler
to Werner Pamler
Werner Pamler wrote 8 lines
* In the IDE, go to "Package" > "Open Package File (*.lpk)". Navigate into the directory with the unzipped download. Open the lpk file, fpexif_pkg.lpk. That's all - the IDE now knows where it finds this package and all its units. If you want you can click "Compile" to see whether all package units compile correctly (they should...).

I forgot to mention (before you see yet another bad joke): my description is correct for runtime packages only (fpexif_pkg.lpk is one of them). Before you'll be able to use packages of the other type, designtime package, you must *install* the package into the IDE by clicking on "Use" > "Install" in the package editor.

Maybe you should read more about packages in
https://wiki.freepascal.org/Lazarus_Packages
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250316/08b8f57c/attachment.htm>

Reply by email

Arí Ricardo Ody
to Werner Pamler

I apologize for asking for an explanation that is accessible to those who are not experts in the Lazarus environment. I see myself as a programmer using Lazarus as a tool.

So, I apologize to everyone in this group once again for having had difficulties with the environment. I thought that if a tool is willing to serve programmers, it should easily provide solutions to solve the problems generated by development needs.

I have already abandoned the idea of metadata. I will try not to raise any more questions. Because I am not an expert in compilers and frameworks. I just want to use them as tools.

Regards

Ar? Ricardo

On Sun, Mar 16, 2025 at 2:59?PM Werner Pamler via lazarus <

Show quoted text 25 lines
wrote: Am 16.03.2025 um 18:42 schrieb Werner Pamler via lazarus: - In the IDE, go to "Package" > "Open Package File (*.lpk)". Navigate into the directory with the unzipped download. Open the lpk file, fpexif_pkg.lpk. That's all - the IDE now knows where it finds this package and all its units. If you want you can click "Compile" to see whether all package units compile correctly (they should...). I forgot to mention (before you see yet another bad joke): my description is correct for runtime packages only (fpexif_pkg.lpk is one of them). Before you'll be able to use packages of the other type, designtime package, you must *install* the package into the IDE by clicking on "Use" > "Install" in the package editor. Maybe you should read more about packages in https://wiki.freepascal.org/Lazarus_Packages -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250414/daf7ab2e/attachment.htm>

Reply by email