Editing XMP data in images

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Editing XMP data in images

Mattias Gaertner
Hi,

I need to edit XMP data in images (at least tif, jpg).

Maybe someone has already done it and can give me a hint?

Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Editing XMP data in images

Giuliano Colla
Il 01/10/2012 20:00, Mattias Gaertner ha scritto:
> I need to edit XMP data in images (at least tif, jpg).
>
This can help?

http://en.wikipedia.org/wiki/Extensible_Metadata_Platform#XMP_support_and_acceptance

Giuliano

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Editing XMP data in images

Bernd K.
In reply to this post by Mattias Gaertner
2012/10/1 Mattias Gaertner <[hidden email]>:
> Hi,
>
> I need to edit XMP data in images (at least tif, jpg).

If you need some quick and dirty solution then I have something here
that will one day become part of an application to tag and organize
jpeg images from digital cameras. It will start a separate exiftool
process (in stay_open mode so it won't need to be restarted for every
image, it keeps running as long as my program runs and I call it
"quick and dirty" because I did not want to make a binding to some C
library, I simply took the easy way) and exiftool is well tested and
can be trusted to write my original jpeg images with any danger of
corrupting them).

The attached code does not yet implement all needed commands, it will
only read thumbnails and read xmp keywords and exif keywords but
writing will be equally simple.

Commands will be enqueued along with a callback method to call back
(via QueueAsyncCall because the other code that started it and wants
to receive the results is in the GUI) when the job is done. Simply
create an instance of TExifTool and call its methods. Implement more
descendants of TExifQueuedJob that fit your needs and methods in
TExifTool to use them.


See attachment for the code. License (in this half finished state it
is now) is public domain.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

exiftool.pas (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Editing XMP data in images

Luiz Americo Pereira Camara
In reply to this post by Mattias Gaertner


2012/10/1 Mattias Gaertner <[hidden email]>
Hi,

I need to edit XMP data in images (at least tif, jpg).

Maybe someone has already done it and can give me a hint?

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal