ZenphotoCMS Forum
Exif Data in a special format - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Exif Data in a special format (/thread-4524.html)



Exif Data in a special format - martin.s - 25-01-2009

Hi!

I just tried the following:

I wanted to get the Exif Data on the same page as the main foto is displayed.
So far everything worked fine, here the result:
http://www.rdmag.de/photo/wacken-2008/IMG_000008.jpg.php

So now the only thing I would like to change is the output format of the Exif data.

I would like them displayed like:

Canon EOS 30D - 1/400 sec - f/7,1 - 350 mm

(and not like now:
Camera Model: Canon EOS 30D
Shutter Speed: 1/400 sec
Aperture: f/7,1
Focal Length: 350 mm )

I would be glad if there is a possibility to get the Exifs in a format like this or each Exif on its own so that I can put them together in the theme like I want them.

Thanks a lot!

Best!

martin




Exif Data in a special format - sbillard - 25-01-2009

Each of the EXIF fileds is available on an individual basis by using the function getImageData(). So you will need to make yoru own formatting such as:

echo getImageData('EXIFMake').' '.getImageData('EXIFModel'). ' - '. getImageData('EXIFFNumber'). ' - ' . getImageData('EXIFFocalLength');




Exif Data in a special format - martin.s - 25-01-2009

Thank you so much!
That worked absolutely perfect:

http://www.rdmag.de/photo/wacken-2008/IMG_000008.jpg.php