![]() |
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 |
Display and extract EXIF information from images? is also set to YES |
phpinfo shows it has exif support too |
I will look into this |
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 |
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. |
The arguement is null unless encountered. Thus your php reporting is set too high as it reports empty variables its a safety check |
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. |
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 |
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 ? |
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. |
none of the functions in php are disabled, nor is it running in safe mode. |
|
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 |
;) 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