Main Menu

Help with exiftool

Started by php_starter, March 22, 2013, 01:22:47 PM

Previous topic - Next topic

php_starter

Hello,

I`m new in this and I`m trying to use exiftool to read metadata from jpeg files and edit them than save the new data to the same jpeg file.
I tried to search the web but I could not find an easy and simple tutorial how to work with exiftool for php (I have the exiftool library).
How do I add the library? How do I get the data into an array (for example)? How do I save it to the same file?

HELP! please.
Thank you

Phil Harvey

Did you see the PHP wrapper for ExifTool, linked from the Programming Resources section of the home page?  I'm not sure how complete this library is, but it is a place to start.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

php_starter

Hi,
Thanks for reply. I saw it and download it but could not make it work.
Any easy simple tutorials about it?

Phil Harvey

Looking at the files on GitHub, I see some tests that may provide examples.  But whoa, the code in AbstractWriterTest looks very complex, whereas the ExifTool Perl API is very simple.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

php_starter

I don`t work with perl, I need to make it work with PHP.

Any ideas?

Thanks

Phil Harvey

Any PHP programmers out there?
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

php_starter

Hello,

I have another question:
I need it to run in linux, Can I use the same command file as windows?
How do I use it on linux?

Thanks

Phil Harvey

I don't know what you mean by command file, but the exiftool commands are generally the same in Linux and Windows, except that  the quotes you need to use may be different.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).