• Resolved Corrado Prever

    (@artphotoasia)


    Hi there

    Your plugin is definitely the best out there, but when I regenerate my thumbnail in wordpress (I tried with different plugin) all the data exif are gone and not showing so after the process I lost the data.

    I restored the database so non is ok but I would like to regenerate my thumbnail .

    How can I do?

    Where are stored the data in the database?

    https://ww.wp.xz.cn/plugins/thesography/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Corrado Prever

    (@artphotoasia)

    You can see it here

    http://www.corradoprever.com/fotografia/italia-2010/mondovi/

    The second image went under thumbnail regeneration, as you can see there are no exif data.

    If I restore the database all is fine, so is a database issue.

    Thread Starter Corrado Prever

    (@artphotoasia)

    Here the 2 function I add to my theme function.php

    /* title display */

    function add_title_attachment_link($link, $id = null) {
    $id = intval( $id );
    $_post = get_post( $id );
    $post_title = esc_attr( $_post->post_title );
    return str_replace(‘<a href’, ‘<a title=”‘. $post_title .'” href’, $link);
    }
    add_filter(‘wp_get_attachment_link’, ‘add_title_attachment_link’, 10, 2);

    /* exif */

    function my_image_titles($atts,$img) {
    if (function_exists(‘exifography_display_exif’))
    $atts[‘title’] = exifography_display_exif(‘all’,$img->ID);
    else
    $atts[‘title’] = trim(strip_tags( $img->post_title ));

    return $atts;
    }
    add_filter(‘wp_get_attachment_image_attributes’,’my_image_titles’,10,2);

    Plugin Author kristarella

    (@kristarella)

    What about new image uploads? Do they display EXIF data?

    In my experience the Regenerate Thumbnails plugin works great with EXIF data (is that the plugin you are using?). I would guess that something else is going on, such as another plugin that strips EXIF data (e.g., Smush.it), or perhaps your host changed their server configuration and it no longer has the PHP Exif module enabled.

    NB the EXIF data is imported to the database when images are uploaded and/or regenerated so old images will have their data in the database. Regenerated images and newly uploaded images should have the same behaviour, unless whatever method you’re using to regenerate is stripping the EXIF data.

    Please upload a new image to test whether the EXIF is imported for it and let me know whether it works. If it does then it is the regeneration method that is stripping EXIF data, if it doesn’t then I think it is likely another plugin, or your server config to blame.

    Thread Starter Corrado Prever

    (@artphotoasia)

    Thanks for the reply, probably you right, must be something else.

    The server is ok otherwise no exif at all on all img.
    I just tested the new uploaded img have the exif.

    I use Smush.it automatically during upload process but all is fine till I do not make regeneration of thb.

    When I make regeneration of one img to test then the exif are gone.
    So is the regeneration method that delete exif from database.

    I use the plugin Regenerate Thumbnails Version 2.2.4

    What can do?

    Thread Starter Corrado Prever

    (@artphotoasia)

    Hello there
    I can confirm, the problem is Smush.it !

    If I upload the img with Smush.it disabled then I make the regeneration thumbnail no problem at all.

    If I upload the img with Smush.it running at first sight look like to be no issue at all but as soon as I make the regeneration no exif because Smush.it deleted already so during the regeneration process WP cant’t get them.

    Plugin Author kristarella

    (@kristarella)

    One of the “features” of Smush.it is that is removes EXIF data in order to reduce the total amount of information that the image has to carry, which helps reduce the image size.

    I thought that it would affect images upon first upload as well, but I’m guessing that WordPress must process the image information before Smush.it removes the EXIF when you first upload an image, the result being that the EXIF is in the database, but no longer in the image. This is why the EXIF is removed from the database when you run the regenerate thumbnails plugin, because there is no longer any EXIF in the image file.

    I’m afraid there’s not much can be done about this. The only way to regenerate thumbnails and keep your EXIF would be to upload the original image containing EXIF via FTP, replacing the one in your uploads folder that was processed with Smush.it. Then when you run Regenerate Thumbnails the EXIF will be present in the image file. Any other solution would involve more complicated database manipulation.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘help with regenerating thumbnail’ is closed to new replies.