The Drupal 7 version of the module doesn't seem to extract the exif data from images unless you check the "Refresh on node update" box on the settings page. But the title and description of the "Refresh on node update" box imply that it is for something else entirely: "If you enable this option, Exif data is being updated when the node is being updated." That suggests that checking the box will make the module re-load the exif data if a node is updated.

It seems that either the box needs to be updated to say "Enable the reading of exif data", or else the exif_field_attach_presave needs to be modified to not check if the exif_update setting is TRUE, like so:

function exif_field_attach_presave($obj_type, $object) {
  if (($obj_type == 'node' || $obj_type == 'file') ) {
    _exif_node_insert_update($obj_type,$object);
  }
}

Comments

  • jphautin committed 516efbe on 7.x-1.x
    Issue #1692188: No exif data read until "Refresh on node update" setting...
jphautin’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Assigned: Unassigned » jphautin
Issue summary: View changes
Status: Active » Fixed

The behavior is as follow :

  • first time, the metadata is always extracted and store
  • next times, data is extracted ONLY is update metadata is set

regards,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.