sprocket wrote:In version 0.17.1, I was able to use the Tooltip and Image Caption Overlay options to pull the EXIF data from the images to populate the Caption (Description) of the photo. I don't use the manual TITLE/DESCRIPTION options, because I want my photos to be tagged forever, wherever they are. It seems in version 0.18.1, the 'TITLE' and 'DESCRIPTION' tags no longer work in Tooltip and Image Caption Overlay. Previously 'TITLE' was referring to what my EXIF editing software refers to as 'Object Name'. 'TITLE' now seems to fill with the filename (something I would NEVER personally want to display). 'DESCRIPTION' used to fill with the EXIF 'CAPTION' but now returns nothing at all.
Sorry, my fault. There was a bug so that when width/height of the image was defined in new EXIF data read, it didn't try to read the image data (IPTC), and therefore this was empty. Just update this file, and save something in panel (to make sure pages are refreshed):
/app/asset-types/image.inc.php
sprocket wrote:I'd also like to ask again if we could get a 'HEADLINE' tag in there as discussed in this post
https://forum.photo.gallery/viewtopic.php?f=52&t=8361
The Headline tag is what X2 called the 'TITLE', so all my photos follow the format of using 'HEADLINE' instead of 'OBJECT NAME' for their titles.
Well let me just clear some things, as that is not entirely correct. First of all, in X3 yes we call it title, and there will always only be a single title ... In cameras and devices it's normally also called "title" (screenshot from Mac
https://d.pr/i/12Kc6), even though from Mac iPhoto it is referred to as "caption" ... Headline however is something else, but it's obviously just an "alternative" title.
Anyhow, I have tried to fix it in the
same download script as above. It will work like this: If
$iptc["2#005"][0] is set (caption/title), it will use that ... Else, it will search for the headline tag you have noted in your other post
$iptc["2#105"][0], and use that instead. I haven't tested it myself, because I don't have any images with headline tag, and none of my applications set it ... It should work though.
Changes:
if(isset($iptc["2#005"][0])) {
$this->data['title'] = $this->utf8_validate($iptc["2#005"][0]);
} else if(isset($iptc["2#105"][0])){
$this->data['title'] = $this->utf8_validate($iptc["2#105"][0]);
}
In above, sets X3 "title" from 2#005 if is set. Else, checks for 2#105 (which is your headline tag, if you tested it already), and set x3 title to that.
As you may understand, there are so many different tags from applications and cameras. In X3 we don't want "load it all" as that would be incredibly messy. Instead, we would normalize to
image.title, which makes sense.
Let me know ...