Hi...

I'm having issues with this module. I've followed all the instructions to set it up, and I've included EXIF fields on two content types: Image (by Image module) and Image2 (an ImageField content type). I'm using this on my testing server, but I will try to recreate the setup on a live server to show what's happening.

I'm trying to load:
-date (using several different EXIF field/date field type combinations)
-keywords

Neither of these is loading properly. One date shows the current date at the time I uploaded the photo; another date shows 1970 (always the same with any photo I upload); the other date field remains blank.

The keywords field isn't showing anything in the text field, even though I selected images that I know for a fact *do* have keywords.

I am using Imagecache, the Image module, Filefield and Imagefield, and Image FUpload for Image and Imagefield (I've tried with and without).

Can someone point me in the direction of where this is going wrong? I'm not sure where to look.

Comments

rapsli’s picture

Hi what's the name of your content type?

jessia’s picture

The image module image is "image" and the imagefield module image is called, on one site "img" and on another "image2"

rapsli’s picture

what version of drupal core are you using?

rapsli’s picture

Status: Active » Postponed (maintainer needs more info)

so you are using the image module AND imagefield. hm... in order for me to find and fix the bug I need more detailed information

jessia’s picture

Drupal core version 6.16.

Yes, I'm running both Image AND Imagefield at the moment (testing to determine which works best for my purposes).

rapsli’s picture

and in both cases no data is being loaded from the image? if you go to admin/settings/exif, Do you see there exif data being displayed?

jessia’s picture

Yeah--all that data loads fine into the admin/settings/exif page, but none of it loads into my fields, which are:
field_iptc_keywords
field_exif_datetimeoriginal
field_exif_datetimedigitized
field_exif_datetime

exif_datetimeoriginal is a "date" field and shows nothing
exif_datetimedigitized is a "datetime" field (text input) and shows the current date
exif_datetimedigitized is a "datetime" field (select list) and shows the current date
iptc_keywords is a text field and shows nothing

jessia’s picture

Any updates?

rapsli’s picture

sorry, no. maybe it has to do with the server configuration. when you go to admin/settings/exif/general is data being loaded for the example image? (you can also replace the example image with your own image)

Romejoe’s picture

Status: Postponed (maintainer needs more info) » Active

Same here!

I get no data at all. Even disabled FUPLOAD module.

I just found my pictures were named xxx.JPG (uppercase ending) this does not work if I copy it as sample to the server but as soon as I rename it and use lowercase it works as sample. might this be the reason?

---> YES! works with lowercase ending!

Please Fix!

arski’s picture

Confirming issue, uppercase .JPG extension doesn't seem to work for me when importing images (at least into the ImageField, don't know about Image module). I'm using the current -dev version btw.

ndm’s picture

For me every works fine but no value with date field. The reason was that the exif date format is in uppercase (automatically in my case). So the solutution i founded is here :

//Line  164 for dev version
//Change that
$date_datetime = date_convert_from_custom($exif_date, variable_get('date_format_exif', 'Y:m:d H:i:s'));
//by
$date_datetime = date_convert_from_custom($exif_date, variable_get('date_format_EXIF', 'Y:m:d H:i:s'));
rapsli’s picture

Assigned: Unassigned » rapsli

Ok, I'm going to try and fix these bugs:

- looking into #12
- working on the lower/uppercase problem

rapsli’s picture

Status: Active » Fixed

#10 and #12 are fixed.

I'm going to close this issue.

Status: Fixed » Closed (fixed)

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

Romejoe’s picture

Version: 6.x-1.2 » 6.x-1.4
Status: Closed (fixed) » Active

I updated to 1.4 and now can not read ANY pictures date! Does not matter if lower or uppercase.

Every time I get the following Error:

warning: date_offset_get() expects parameter 1 to be DateTime, null given in ....../drupal/sites/all/modules/exif/exif.module on line 178.
warning: date_timezone_set() expects parameter 1 to be DateTime, null given in ....../drupal/sites/all/modules/exif/exif.module on line 179.

If I use the same picture as sample it shows the exif data! But as soon as I create a node it gives me this error and stores nothing in the field.
Even if I edit the node and manually enter a date in the field I get this error message!

Before upgrading to 1.4 (using 1.2) I got these errors and the actual date was shown in the field afterwards. When I then did enter a date manually he did store it. This is not possible any longer.




BTW: Does Exif no longer need pel? Are there any backdraws?
There is nothing in the readme about pel anymore. The sample works with or without pel so I assume it is not needed anymore. Is this correct?

Romejoe’s picture

Hello world?

jphautin’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 EOL