View Full Version : Show EXIF Information?
December 10th, 2004, 05:50 AM
Does this work? I have it enabled, and I uploaded a photo with XIF information ie camera make and model, lens speed etc it displays this info in the File Properties in MS Explorer, but it does not show any of this information when I upload the file, I just get the normal information displayed, like user uploaded, time, file size and pixel size.
December 10th, 2004, 07:21 AM
In showimage.php find
$exif['info'] = exif_read_data($vba_options['gallery_filecategory'] . '/' . $image['catid'] . '/' . $image['filename'], 'EXIF');
Replace that with
$exif['info'] = @exif_read_data($vba_options['gallery_filedirectory'] . '/' . implode('/', preg_split('//', $image['userid'], -1, PREG_SPLIT_NO_EMPTY)) . '/' . $image['filename'], 'EXIF');
December 10th, 2004, 09:59 AM
Let me know if Kirby's fix doesn't work.
December 10th, 2004, 10:13 AM
I know this is a dumb question but...... where would it show? In the imagebit? :confused: I've been trying to get this working on my site also.
December 10th, 2004, 10:26 AM
It's displayed on the showimage.php page. There was still an error in the code posted above, so I've modified the post to reflect the correct code.
December 10th, 2004, 10:37 AM
It's displayed on the showimage.php page.Oh, man, I'm having one of those days already. :o Let's see... if I modify a file named "showimage.php" then where will it show up? HHmm.... Doh! <slaps self on forhead> It's what I get for staying up till 4:30am. :D
There was still an error in the code posted above, so I've modified the post to reflect the correct code.Cool. I'm poking around now. I'm trying some random images but the EXIF isn't showing. But.... it I'm not sure where the problem is coming from now. I'm looking at some 'original' images that I uploaded that were taken with my Canon digital but even using an IE plug-in for viewing EXIF it's not finding anything. HHmm.... I must experiment a little bit.
December 10th, 2004, 10:40 AM
I wonder what I posted originally, as this seems to be exactly the code i am using. lol
December 10th, 2004, 10:59 AM
Kirby, as far as I can tell it was a space between one of the concatenators.
On an unrelated note.... if anybody is interested in the IE EXIF view plug-in, check here (http://ak.no-ip.com/EXIF/). :)
December 10th, 2004, 11:04 AM
Looks like I had $vba_options['gallery_filecategory'] rather than $vba_options['gallery_filedirectory']. ;)
Kevin - Your problem could be that your server isn't configured with the exif_read_data() function. You could try removing the AND function_exists('exif_read_data') code from your showimage.php file and that would print out an error then if you don't have it.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.