Title: Exif Details
Author: Katsushi Kawamori
Published: <strong>5 de mayo de 2020</strong>
Last modified: 29 de marzo de 2026

---

Buscar plugins

![](https://ps.w.org/exif-details/assets/banner-772x250.jpg?rev=2298875)

![](https://ps.w.org/exif-details/assets/icon-256x256.png?rev=2298875)

# Exif Details

 Por [Katsushi Kawamori](https://profiles.wordpress.org/katsushi-kawamori/)

[Descargar](https://downloads.wordpress.org/plugin/exif-details.1.11.zip)

[Vista previa](https://es.wordpress.org/plugins/exif-details/?preview=1)

 * [Detalles](https://es.wordpress.org/plugins/exif-details/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/exif-details/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/exif-details/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/exif-details/#developers)

 [Soporte](https://wordpress.org/support/plugin/exif-details/)

## Descripción

Obtén información EXIF detallada sobre el archivo de medios.

#### Selección de datos

 * ARCHIVO
 * EXIF
 * GPS

#### Plugin hermano

 * En el siguiente plugin, puedes usar las etiquetas generadas por este plugin.
 * [Exif Caption](https://es.wordpress.org/plugins/exif-caption/).

#### ¡Gracias especiales al proveedor de datos de prueba!

 * [sysbird](https://profiles.wordpress.org/sysbird/)

#### Ejemplo usando el fragmento de código 1 y 3

#### Ejemplo de cómo usar el gancho de filtro y el gancho de acción

 * Ejemplo del fragmento de código 1

    ```
    /**  ==================================================
     * Sample snippet 1
     *
     * The original filter hook('exif_details_data'),
     * which changes the display when retrieving an Exif and storing it in metadata.
     * The following changes the display of the shooting date and time.
     *
     * @param array $exifdatas  exifdatas.
     * @param int   $id  id.
     */
    function exif_details_change( $exifdatas, $id ) {
        if ( array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
            $shooting_date = str_replace( ':', '-', substr( $exifdatas['DateTimeOriginal'], 0, 10 ) );
            $shooting_time = substr( $exifdatas['DateTimeOriginal'], 10 );
            $exifdatas['DateTimeOriginal'] = $shooting_date . $shooting_time;
        }
        return $exifdatas;
    }
    add_filter( 'exif_details_data', 'exif_details_change', 10, 2 );
    ```

 * Ejemplo del fragmento de código 2

    ```
    /**  ==================================================
     * Sample snippet 2
     *
     * Retrieve the post metadata and add the date and time of the shooting to the title of the media page.
     * Execute the original action hook('exif_details_update') in the function.
     *
     * @param array $title  title.
     * @param int   $id  id.
     */
    function media_title( $title, $id ) {
        $datetime = null;
        if ( is_attachment() ) {
            do_action( 'exif_details_update', $id );
            $exifdatas = get_post_meta( $id, '_exif_details', true );
            if ( ! empty( $exifdatas ) && array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
                $datetime = ' Date:' . $exifdatas['DateTimeOriginal'];
            }
        }
        return $title . $datetime;
    }
    add_filter( 'the_title', 'media_title', 10, 2 );
    ```

 * Ejemplo del fragmento de código 3

    ```
    /**  ==================================================
     * Sample snippet 3
     *
     * When adding new media, insert the processed data into the caption.
     * Use the original action hook ('exif_details_update') with function.
     *
     * @param array $metadata  metadata.
     * @param int   $id  id.
     */
    function media_caption( $metadata, $id ) {
        $mime_type = get_post_mime_type( $id );
        if ( in_array( $mime_type, array( 'image/jpeg', 'image/tiff' ) ) ) {
            do_action( 'exif_details_update', $id );
            $exifdatas = get_post_meta( $id, '_exif_details', true );
            if ( ! empty( $exifdatas ) ) {
                $camera = null;
                $f_number = null;
                $s_speed = null;
                $iso = null;
                $date = null;
                $googlemap = null;
                if ( array_key_exists( 'Model', $exifdatas ) ) {
                    $camera = 'Camera:' . $exifdatas['Model'];
                }
                if ( array_key_exists( 'ApertureFNumber', $exifdatas ) ) {
                    $f_number = 'F-number:' . $exifdatas['ApertureFNumber'];
                }
                if ( array_key_exists( 'ExposureTime', $exifdatas ) ) {
                    $s_speed = 'Shutter speed:' . $exifdatas['ExposureTime'];
                }
                if ( array_key_exists( 'ISOSpeedRatings', $exifdatas ) ) {
                    $isodata = json_decode( $exifdatas['ISOSpeedRatings'] );
                    if ( is_array( $isodata ) ) {
                        $iso = 'ISO:' . $isodata[0];
                    } else {
                        $iso = 'ISO:' . $isodata;
                    }
                }
                if ( array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
                    $date = 'Date:' . $exifdatas['DateTimeOriginal'];
                }
                if ( array_key_exists( 'latitude_dd', $exifdatas ) && array_key_exists( 'longtitude_dd', $exifdatas ) ) {
                    $googlemap = '<a href="https://www.google.com/maps?q=' . $exifdatas['latitude_dd'] . ',' . $exifdatas['longtitude_dd'] . '">Google Map</a>';
                }
                $caption = sprintf( '%1$s %2$s %3$s %4$s %5$s %6$s', $camera, $f_number, $s_speed, $iso, $date, $googlemap );
                $caption = rtrim( $caption );
                $caption = preg_replace( '/\s(?=\s)/', '', $caption );
                $media_post = array(
                    'ID'           => $id,
                    'post_excerpt' => $caption,
                );
                wp_update_post( $media_post );
            }
        }
        return $metadata;
    }
    add_filter( 'wp_generate_attachment_metadata', 'media_caption', 10, 2 );
    ```

## Capturas

 * [[
 * Pantalla de visualización
 * [[
 * Ejemplo usando el fragmento de código 1 y 2
 * [[
 * Ejemplo usando el fragmento de código 1 y 3

## Instalación

 1. Sube la carpeta `exif-details` al directorio `/wp-content/plugins/`
 2. Activa el plugin a través del menú «Plugins» en WordPress

## FAQ

ninguna

## Reseñas

![](https://secure.gravatar.com/avatar/6b9954506e4c3e67381742137d64dd9fbda01e4cfabdc3b9ce99372bf2ccd8ba?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-39433/)󠁿

 [paktas](https://profiles.wordpress.org/paktas/) 1 de septiembre de 2024

This is plain and simple EXIF details plugin that we use in Media gallery. Updated
recently – thanks.

 [ Leer la 1 reseña ](https://wordpress.org/support/plugin/exif-details/reviews/)

## Colaboradores y desarrolladores

«Exif Details» es un software de código abierto. Las siguientes personas han colaborado
con este plugin.

Colaboradores

 *   [ Katsushi Kawamori ](https://profiles.wordpress.org/katsushi-kawamori/)

«Exif Details» está traducido en 8 idiomas. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/exif-details/contributors)
por sus contribuciones.

[Traduce «Exif Details» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/exif-details)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/exif-details/) , echa
un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/exif-details/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/exif-details/)
por [RSS](https://plugins.trac.wordpress.org/log/exif-details/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### [1.11] 2025/06/11

 * Fix – Issues related to data acquisition.

#### [1.10] 2025/04/17

 * Fix – Loading the management screen.

#### 1.09

Changed json_encode to wp_json_encode.

#### 1.08

Supported WordPress 6.4.
 PHP 8.0 is now required.

#### 1.07

PHP 8.0 or higher is now supported.

#### 1.06

Supported WordPress 5.6.

#### 1.05

Corregido un problema de la imagen original.

#### 1.04

Cambiado el archivo «readme.txt».

#### 1.03

Corregidos los datos GPS.

#### 1.02

Corregido un problema con los datos separados por barras.
 Cambiado el archivo «
readme.txt».

#### 1.01

Si el valor es un array, se guarda como JSON.

#### 1.00

Versión inicial.

## Meta

 *  Versión **1.11**
 *  Última actualización **hace 3 semanas**
 *  Instalaciones activas **300+**
 *  Versión de WordPress ** 4.7 o superior **
 *  Probado hasta **7.0**
 *  Versión de PHP ** 8.0 o superior **
 *  Idiomas
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/exif-details/), [English (US)](https://wordpress.org/plugins/exif-details/),
   [Japanese](https://ja.wordpress.org/plugins/exif-details/), [Spanish (Chile)](https://cl.wordpress.org/plugins/exif-details/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/exif-details/), [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/exif-details/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/exif-details/), [Spanish (Venezuela)](https://ve.wordpress.org/plugins/exif-details/)
   y [Swedish](https://sv.wordpress.org/plugins/exif-details/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/exif-details)
 * Etiquetas:
 * [exif](https://es.wordpress.org/plugins/tags/exif/)[media library](https://es.wordpress.org/plugins/tags/media-library/)
   [photos](https://es.wordpress.org/plugins/tags/photos/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/exif-details/advanced/)

## Valoraciones

 5 de 5 estrellas.

 *  [  1 valoración de 5 estrellas     ](https://wordpress.org/support/plugin/exif-details/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/exif-details/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/exif-details/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/exif-details/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/exif-details/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/exif-details/reviews/#new-post)

[Ver todas las valoraciones](https://wordpress.org/support/plugin/exif-details/reviews/)

## Colaboradores

 *   [ Katsushi Kawamori ](https://profiles.wordpress.org/katsushi-kawamori/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/exif-details/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://shop.riverforest-wp.info/donate/)