I might be doing something wrong. I'm not 100% sure if I'm creating the cck field correctly to get the exif info out of the cck imagefield image. Perhaps this should be a documentation problem instead of a code error. The readme.txt doesn't run through the creation of the examples it gives entirely, but then again this is a dev build and I know the module is not that old and will probably get better documentation later on.

Either way, in trying to figure out if it is me or the module causing the errors so here is what I did. I created a new content type of photo_a_day with a cck imagefield to upload a photo. I then added another cck field with a custom Label name (pad_exif_expotime) and a Name of field_exif_exposuretime with a Type of Text and Operation of Text field. Is that the right way to get the exposure time to go into a custom cck field? I get stumped in the readme at the Type and Operation I can/should use on the custom field.

If it is right, then when I post a new Photo_a_day image using this new content type, I get 3 errors from exif.

* warning: exif_read_data(E8BC9091.JPG) [exif_read_data]: Illegal IFD size: 2 + x1D00*12 = x15C02 > x0FCA in /home/.shush/USER/WEBSITE.COM/sites/all/modules/exif/exif.class.php on line 60.
* warning: exif_read_data(E8BC9091.JPG) [exif_read_data]: Process tag(x8692=UndefinedTa): Illegal format code 0x0700, suppose BYTE in /home/.shush/USER/WEBSITE.COM/sites/all/modules/exif/exif.class.php on line 60.
* warning: exif_read_data(E8BC9091.JPG) [exif_read_data]: Process tag(x8692=UndefinedTa): Illegal pointer offset(x2A120000 + x8010000 = x32130000 > x3E69) in /home/.shush/USER/WEBSITE.COM/sites/all/modules/exif/exif.class.php on line 60.

The photo I've uploaded is a photo from a Canon 1D that is straight from the camera without any editing.

I'm seeing this output below the errors:

*

exposuretime

*
o
... (Array, 1 element)
+
exposuretime (String, 5 characters ) 1/250
o
Krumo version 0.2a
| http://krumo.sourceforge.net
Called from /home/.shush/USER/WEBSITE.COM/sites/all/modules/exif/exif.class.php, line 70
* Photo A Day 2nd attempt of upload photo to get exif data has been created.

When I view the post, I do not see the exif exposure time info anywhere on the page. Looking at the loaded variables I see

#
field_exif_exposuretime (Array, 1 element)

*
0 (Array, 1 element)
o
nid (NULL)

Is it my ineptitude with CCK and exif module causing the issue or is it the file I'm throwing at it?

Comments

timnorman’s picture

As an added note I took another image that is from the same camera that I processed in Photoshop CS4. There were no errors after posting the image, but I still don't see any exif data on the node page. Perhaps the exif data isn't being written to a table or isn't being pulled out, or as I suggested that I'm FUBARing the cck and exif field.

rapsli’s picture

Status: Active » Postponed (maintainer needs more info)

is this error still active?

jphautin’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)