-
-
Save xombra/11335934 to your computer and use it in GitHub Desktop.
exif de una imagen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$exif = exif_read_data('aqui_la_imagen.jpg', 0, true); | |
header("Content-type: image/jpeg"); | |
$imagen = exif_thumbnail("IMG-20140326-WA0010.jpg"); | |
imagejpeg($imagen,NULL,100); | |
foreach ($exif as $clave => $seccion) { | |
foreach ($seccion as $nombre => $valor) { | |
if ( "$clave.$nombre" == 'FILE.FileDateTime'){ $valor = date("d-m-Y",$valor); } | |
echo "$clave.$nombre : $valor<br />\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment