exiftool -php -q image.jpg can't return anything

Started by brentsu, November 26, 2015, 12:39:58 PM

Previous topic - Next topic

brentsu

ExifTool 9.99 - 10.0.6 use this example program, can't return anything! nothing in the $array! Only ExifTool 9.98 can do very well.

    <?php
    eval('$array=' . `exiftool -php -q image.jpg`);
    print_r($array);
    ?>

Use system : OS X Yosemite 10.10.5

Phil Harvey

I'm afraid you have to be more specific.

This works fine for me using ExifTool 10.06 on all of the images in the t/images directory of the full distribution.  What is the output of "exiftool -php image.jpg" for your image?

- 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 ($).

brentsu

Quote from: Phil Harvey on November 26, 2015, 12:46:19 PM
What is the output of "exiftool -php image.jpg" for your image?

- Phil
Hi, Phill

my image output is PHP of the $array

I reinstall ExifTool 9.98 again. and use the standard example PHP program.



And then upgrade to the latest version ExifTool 10.06. same example PHP program, Just reload Safari web page only.



You can see it get nothing!

Hayo Baan

Can you run the command on the command line, directly, instead of via php?
What is the output then?
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

It looks like the -php output is OK with the exception that everything is strung into one long line.  It would have been better if you posted the output as an attachment.  ie) use this command:

exiftool -php image.jpg > out.txt

and attach out.txt to your post.

- 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 ($).

brentsu

#5
Hello Hayo Baan and Phil,

EXIF looks exactly the same content! Not the same place is :

"ExifToolVersion" => 9.98,
"ExifToolVersion" => 10.06,

  "FileAccessDate" => "2015:11:28 00:29:18+09:00",
  "FileInodeChangeDate" => "2015:11:28 00:29:17+09:00",
  "FileAccessDate" => "2015:11:27 08:01:12+09:00",
  "FileInodeChangeDate" => "2015:11:27 07:14:41+09:00",

Phil Harvey

Yes, the -php output files for 9.98 and 10.06 are identical except for the ExifTool version number and the file access dates.  So whatever problem you are having is due to something else, and not the ExifTool update.

- 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 ($).

brentsu

I just updated the ExifTool program, not doing any thing other and something else!