Hi!
I have tried for a few hours now making the exif module save exif data to a taxonomy, but I simply cannot get it working.

My base setup is
* a content type (called "gallery-image" ) containing
- field_exif (term reference to "images")
- an image field (called "field_theimage", previously called "field_image")
* a taxonomy (called "images", previously called "photographies_metadata" (got that from the readme))
- filled with base structure (exif->model for example) according to readme (or empty)
* enabled "gallery-image" in admin/config/media/exif/settings

I have tried all combinations I can think of (setting taxonomy widget to "metadata from image" or autotagging, different field names, etc, etc)

With the last try (as above) i get three errors updating the content of type gallery-image (listed below). With most other configurations nothing at all happens visibly:

Notice: Undefined index: language in _exif_node_insert_update() (line 94 of /sites/all/modules/exif/exif.module).
Notice: Uninitialized string offset: 0 in _exif_node_insert_update() (line 98 of /sites/all/modules/exif/exif.module).
Notice: Uninitialized string offset: 0 in _exif_node_insert_update() (line 99 of /sites/all/modules/exif/exif.module).

Could anyone guide me on how to set up this correctly? My main goal is extracting all available exif data, if that is not possible selected fields.

Thanks!
/Victor

Comments

jphautin’s picture

Hi,

field name can not be called field_exif as it will not known the exif tag you want to extract.
call it by example field_exif_model or field_iptc_caption

for a list of supported tags, take a look at:

regards,

jphautin’s picture

Assigned: Unassigned » jphautin
mustername’s picture

Component: Documentation » Code

Hallo jphautin,

this is not a doc. issue, but a code problem, it used to work for me up till Drupal 7.4 after an update to 7.10 however i started to receive the error/notice message above.

Maybe something changed in core and the array is just empty?

Thanks

mustername’s picture

Component: Code » Documentation

i take it back, the function seems alright, and after playing around with settings it works almost fine without . however the taxonomy terms are created but not linked to the nodes, i got a punch of exif terms that do not relate to any images/nodes

jphautin’s picture

Component: Documentation » Code
Category: support » bug
Priority: Normal » Major
merilainen’s picture

Maybe my problem is related to this.

My use case is pretty simple, I only want to get the photographer information from the image. I don't understand why I have to add a separate vocabulary for the exif data (in the documentation it says it should be called "Images". Why? The module provides a setting to choose which vocabulary to use for the exif data, so why should I name it "Images"?) when I want to map for example field_iptc_by_line to a vocabulary called "Photographer" which I'm already using and it contains the all the photographers' names.

I have a field_photographer where I have selected the "Photographers" vocabulary and it's using widget "metadata from image" (documentation says it should be autocomplete, how is that possible?) where I have selected the field_iptc_by_line as source. When I save an image, my Photographers vocabulary remains empty, but instead I get the name of the photographer to the Images vocabulary under iptc -> by_line -> name.

What makes it interesting is that I can see the name of the photographer when I view the image and I can click the name which is a link to term, but it displays an empty list. Probably because the field is linked to Photographers vocabulary, but the term is actually in the Images vocabulary. Confusing...

asb’s picture

@mErilainen: Funny, I just ran through a similar user experience like you two years ago. As it seems, not much has happened since then in regard to consistency, documentation, or user experience. This module is very frustrating and far from being user friendly.

I dumped the whole taxonomy approach and reverted to plain fields, like in D6.

jphautin’s picture

Status: Active » Closed (cannot reproduce)