Skip to content

Instantly share code, notes, and snippets.

@xombra
Created April 27, 2014 02:00
Show Gist options
  • Save xombra/11335934 to your computer and use it in GitHub Desktop.
Save xombra/11335934 to your computer and use it in GitHub Desktop.
exif de una imagen
$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