Hi,
I am new to Drupal and PHP in general, so please be nice. I am attempting to setup a page which can, among other things show a bunch of images along with some of the associated exif information. I have installed the Exif module along with all the supporting modules required, and I ran into a problem. Some of the tags have the string 'UNICODE' in front of their value. Namely the 'usercomment' field. Presumably this is because the information in that field is unicode, but exif_read_data() doesn't seem to do anything with that, and it looks funny when shown on the screen. For an example of what I am talking about, see the image here.
http://www.satyshur.net/drupal/?q=node/30
I am unsure if this is an issue with my web host (1and1), PHP, the exif_read_data() function of my image, but it was bothering me, so I decided to try my hand at PHP coding. I made a change to the readExifTags() function from exif.class.php to check the tags for the phrase 'UNICODE' at the beginning, and if it finds it, remove that bit of the tag. I made an option in the Site Configuration->exif->config menu to turn this option on and off. This is a bit of hackjob, but it works. The same image with the new readExifTags() function is here:
http://www.satyshur.net/drupal/?q=node/31
Does anyone else have this issue? Is there a better way to fix it? I can provide a patch (if I can figure out how) if anyone else has this problem, but I don't want to do too much work (I'm lazy :P) unless it is a real issue. I have some other ideas for things to update in this module, but I will leave those for another day.
Comments
Comment #1
jphautin commented