PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   exif (http://www.photopost.com/forum/photopost-pro-installation-upgrades/121453-exif.html)

shashi December 10th, 2005 03:04 PM

exif
 
Hi,

When I manually run this command:

/path/to/jhead ./data/505/walnut.jpg

the output is:

-----------------------------------
File name : ./data/505/walnut.jpg
File size : 329658 bytes
File date : 2005:12:10 14:27:10
Camera make : Canon
Camera model : Canon PowerShot A95
Date/Time : 2005:06:10 15:58:02
Resolution : 800 x 600
Flash used : No
Focal length : 23.4mm (35mm equivalent: 593mm)
Digital Zoom : 2.531x
CCD width : 1.42mm
Exposure time: 0.020 s (1/50)
Aperture : f/4.9
Whitebalance : Auto
Metering Mode: matrix

-----------------------------------

However, this EXIF data is not coming up at
http://www.nepalhub.com/gallery/show...&size=big&cat=


The path is correct in the admin options.


Additionally, I got this in the server error_logs:

PHP Notice:

Undefined variable: argv in /path/to/gallery/index.php on line 15
Undefined variable: argv in /path/to/gallery/index.php on line 15, referer: http://www.nepalhub.com/gallery/show...hoto=1&cat=505

Please help.:D

shashi December 10th, 2005 03:08 PM

Display and extract EXIF information from images? is also set to YES

shashi December 10th, 2005 03:18 PM

phpinfo shows it has exif support too

Chuck S December 10th, 2005 06:37 PM

I will look into this

Chuck S December 10th, 2005 07:08 PM

Okay took me a few minutes to compile a jhead ;) Check you have the right path to jhead in your global options. I show no issues

Here is your photo

http://www.reeftalk.com/gallery/show...t/500/ppuser/1

shashi December 12th, 2005 01:28 PM

PHP Notice:

Undefined variable: argv in /path/to/gallery/index.php on line 15
Undefined variable: argv in /path/to/gallery/index.php on line 15, referer: http://www.nepalhub.com/gallery/show...hoto=1&cat=505

whats the argv ? i am sure this is the issue at my case.

Chuck S December 12th, 2005 01:46 PM

The arguement is null unless encountered. Thus your php reporting is set too high as it reports empty variables

its a safety check

shashi December 13th, 2005 11:27 AM

Hi,

Here is a demo of a test script i made.

http://www.nepalhub.com/gallery/test.php

The source code of that test.php is:
-------------------------------------------
<?
$abc=`./jhead ./data/505/walnut.jpg`;
echo "$abc";
echo "<p>";
//

$bcd=`/var/www/vhosts/nepalhub.com/httpdocs/gallery/jhead ./data/505/walnut.jpg` ;
echo "$bcd";
?>
------------------------------------------

jhead is located in the same directory and the path given in the admin option is correct.

I see that calling jhead both ways, as ./jhead from inside the gallery directory and as what the path is given in the admin options seem to work fine in the test.php that I made, but not showing up in the /gallery/

Please tell me how to proceed.





Can you point me to the file from where jhead is called from photopost so that perhaps I can do some echo or print additional debug info.

Chuck S December 13th, 2005 11:37 AM

image-inc.php is the file.

If jhead is install correctly and pointed to it works as I showed. Did you make a fresh jhead and place the proper full path to it in the global options

/usr/bin/jhead EXAMPLE

shashi December 13th, 2005 01:58 PM

the path to my jhead is in /var/www/vhosts/nepalhub.com/httpdocs/gallery/jhead

and this is the same path in the global options

to prove it that jhead is working, my test script is

http://www.nepalhub.com/gallery/test.php

The source code of that test.php is:
-------------------------------------------
<?
$abc=`./jhead -exonly ./data/505/walnut.jpg`;
echo "$abc";
echo "<p>";
//

$bcd=`/var/www/vhosts/nepalhub.com/httpdocs/gallery/jhead -exonly ./data/505/walnut.jpg` ;
echo "$bcd";
?>
------------------------------------------

/var/www/vhosts/nepalhub.com/httpdocs/gallery/jhead is the path set at the global options.


Maybe I am missing some options to set.

global_options:
Path to jhead (if used) -- /var/www/vhosts/nepalhub.com/httpdocs/gallery/jhead

upload photo options:
Display and extract EXIF information from images? YES

---

i got a new theory:

does it extract header at upload only? - or at runtime?

is there a way to force it re-read exif headers ?


i used the `` operator to call jhead/
what does photopost use to call jhead ? perhaps i need to check my php.ini if that method is allowed or something ?

Chuck S December 13th, 2005 02:02 PM

I would suggest you download jhead and recompile a copy.

you can in scan database option in admin check to recheck photos to extract exif information but you need to know it is working by uploading a photo with exif and seeing if it is extracted. You last photo I uploaded and jhead extracted exif fine as I posted.

More than likely you have a permissions issue and recompiling is the way to go. Do not use a precompiled binary.

shashi December 13th, 2005 02:03 PM

none of the functions in php are disabled, nor is it running in safe mode.

Chuck S December 13th, 2005 02:06 PM

This is the version I compiled on my site

http://www.sentex.net/~mwandel/jhead/jhead-2.4.tar.gz

shashi December 13th, 2005 02:10 PM

http://www.nepalhub.com/gallery/show...hoto=2&cat=505

it was working all along :( after checking the codes, i found that it works only at upload, while I thought it was extracted on runtime.

everything was OK.. I set exif after I had uploaded my first photo.

I will re-scan and i guess that will extract for the first file too.

Thanks,
Shashi

Chuck S December 13th, 2005 05:10 PM

;) there you go


All times are GMT -5. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97