image_import with EXIF data
DesignWork - October 17, 2007 - 20:16
| Project: | Image |
| Version: | 6.x-1.x-dev |
| Component: | image_import |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (code needs work) |
Description
Dear Maintainers,
I found it nice to have some EXIF data in the node body when i uplaod a file. I changed a bit the image_import module.
Why because every body is photographing with digital cameras and all of them have EXIF, so in a first step i just put the image description into th node body. If there is no description it stays the same.
So i will attach the changed module. Maybe we should thing to make more data availible for the user, or even a admin menu to chose wich data should be displayed. The module runs on www.visum-reportagen.de/collections/liste/Beruf+und+Karriere
Warm regards from cologne.
Dirk
| Attachment | Size |
|---|---|
| image_import.module_4.txt | 9.01 KB |

#1
please post a patch of the changes. it makes it much easier to see what you've done: http://drupal.org/patch
#2
marked #250032: Base title and body on exif COMMENT tag during import as a duplicate. also this needs to happen in HEAD and then possibly be backported to the 5.x-2.x branch.
#3
Here's a patch which implements the basic functionality. It needs to be tested with more different images with comments inserted with different applications.
#4
Note that I did a similar job here - using flat-file metadata not EXIF - but by adding a HOOK in pretty much the same place you added the exif reader ... so the metadata retrieval process can be outsourced to any number of different processes.
The exif_reader can easily then be added on as a contrib function. as can a CSV reader, an XML reader, or any sort of data-finder.
I proposed that a hook method is just that much cleaner...