downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

exif_thumbnail> <exif_read_data
[edit] Last updated: Fri, 17 May 2013

view this page in

exif_tagname

(PHP 4 >= 4.2.0, PHP 5)

exif_tagnameGibt den Header-Namen für einen Index zurück

Beschreibung

string exif_tagname ( string $index )
Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Parameter-Liste

index

Der Bildindex

Rückgabewerte

Gibt den Header-Namen oder FALSE zurück, wenn der index nicht definiert ist.

Siehe auch



exif_thumbnail> <exif_read_data
[edit] Last updated: Fri, 17 May 2013
 
add a note add a note User Contributed Notes exif_tagname - [3 notes]
up
0
abc at ed48 dot com
1 year ago
In association with exif_read_data:

<?php

# The tagnames can vary in different cameras

$imgdir = "/path_to_img/";
$img_file = "image_file.jpg";

echo
$img_file . "&nbsp;&nbsp;&nbsp;<sub>TEST</sub>
<br />"
;
echo
'<img src="' . $imgdir . $img_file . '" alt="'
 
. $img_file . '" title="' . $img_file . '" width="400" /><br /><br />';

$xf_data = exif_read_data($imgdir . $img_file);

$tagg = exif_tagname(0X10F);
echo
'<br>' . $tagg ' >>> ' . $xf_data[$tagg];
$tagg = exif_tagname(0X110);
echo
'<br>' . $tagg ' >>> ' . $xf_data[$tagg];
$tagg = exif_tagname(0X132);
echo
'<br>' . $tagg ' >>> ' . $xf_data[$tagg];
$tagg = exif_tagname(0XA002);
echo
'<br>' . $tagg ' >>> ' . $xf_data[$tagg] . 'px';
$tagg = exif_tagname(0XA003);
echo
'<br>' . $tagg ' >>> ' . $xf_data[$tagg] . 'px';

?>
up
0
abc at ed48 dot com
1 year ago
Theoretically, 65,535 tags are possible. Although not all are used, yet. The code below lists these tags:

<?php

for ($id = 1; $id <= 65535; $id++)
{
$dec2hex = dechex($id);

$strgx = '0x'. $dec2hex;

if(
exif_tagname($strgx) != "")
{
echo
$strgx . ' ( ' . exif_tagname($strgx) . ' )<br />';
}
}

?>
up
-1
djmaze@moocms
5 years ago
Usage: exif_tagname(0x5001)

A list of all supported index numbers is in the exif.c: tag_table_IFD

http://cvs.php.net/viewvc.cgi/php-src/ext/exif/exif.c?view=markup

As you can see, it doesn't support them all!

 
show source | credits | sitemap | contact | advertising | mirror sites