View Full Version : How do I test for existence of EXIF data?
gooseduck
02-15-2006, 04:48 AM
Is there a simple but definitive test?
Thanks.
I think you can see the EXIF data with Irfanview http://www.irfanview.com/.
gooseduck
02-15-2006, 06:38 AM
I want to test to see if a pic has EXIF data while running pixelpost. What is the code for a simple test of their existence?
blinking8s
02-15-2006, 06:53 AM
in the docs/ folder there is a tags list with the exif tags, you need to insert those into your templates
gooseduck
02-15-2006, 07:41 AM
I know about the tags. I don't want to display EXIF labels such as "Camera Model = " when there is no EXIF data (such as for a scanned photo).
So what do I test in my image template so that if there are no EXIF data, I don't have all the labels with blank info.
se.nsuo.us
02-15-2006, 08:08 AM
The image_template.html is just an HTML file there is no way for the template to perform any tests, in fact it should not be needed to perform this test
For what you want you will have to hack the index.php and find lines like $tpl = ereg_replace("<EXIF_CAMERA_MAKE>",$info_camera_manu,$tpl);
$info_camera_manu = "$lang_camera_maker $info_camera_manu";
and make them $info_camera_manu = "$lang_camera_maker $info_camera_manu";
$tpl = ereg_replace("<EXIF_CAMERA_MAKE>",$info_camera_manu,$tpl);
This is for Pixelpost 1.5
@devs - I guess this is a bug?
On CVS it is right now fixed. Later I must check who did it.
EDIT: What is funny - it's from begin of works on PP 1.5 :/
gooseduck
02-15-2006, 09:33 PM
The image_template.html is just an HTML file there is no way for the template to perform any tests, in fact it should not be needed to perform this test
Yes, you can test in the image template file. And this is the right place to test. Using Java Script.
se.nsuo.us
02-16-2006, 04:00 AM
Yes, you can test in the image template file. And this is the right place to test. Using Java Script.
Please tell us how and why?
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.