![]() |
|
image default title - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: image default title (/thread-7025.html) |
image default title - sbillard - 16-05-2010 Most users would prefer to use the data they carefully placed into their image metadata rather than have the filename override it. This is not something we will change in zenphoto. As discussed in this thread there are actions that you can take to correct this going anywhere from correcting the data in your images to implementing a plugin that will store your chosen data in the database. Perhaps the best would be a proper maker script for the camera. However we are not in a position to be able to create these for any and every camera. If someone with the camera provides the maker code we will be glad to add it to the list. image default title - mcloaked - 16-05-2010 I am not sure what you mean by the maker code - but I am happy to extract it from the exif data for one of the cameras where I have this problem. The best I can find is:
and
This was using the "identify --verbose" command on an image from the camera. and also: If there is any other data that can be extracted for adding to your list I will try to provide it? image default title - Blue Dragonfly - 16-05-2010 Mcloaked, the maker code sbillard refers to is in the /zp-core/exif/makers folder. There are files to parse camera-specific details for various manufacturers. I'm not particularly familiar with this code, but it looks like adding a parser for Minolta could accomplish what you're looking for, by mapping the correct camera-specific fields to the standard fields. For example, your camera is reporting the camera name "MINOLTA DIGITAL CAMERA" as the "ImageDescription". ZenPhoto correctly detects a value for ImageDescription and shows it. The problem is, your camera is putting that value in the wrong place, and thus filling your gallery with many images with the same unhelpful title. Making a Minolta maker script would correct this. image default title - gjunk - 17-05-2010
Thanks. image default title - gjunk - 17-05-2010 Curious what you all think the pros and cons of the 2 approaches are: a) Get a maker script for every possible camera with a problem - as each case presents itself. b) add an option that any user can use to skip exif data for titles on an album by album basis. image default title - Blue Dragonfly - 17-05-2010 gjunk - I think what would be "easiest" depends on the scenario. If a site allows uploads by many users, then option 1 is best, as it will allow most users to upload images with proper metadata and get the full functionality, while allowing exceptions for specific "rogue" cameras. But if a site is populated with images by a single person, such as a photographer uploading to his/her own site, then obviously I can see the argument for it just being easier to turn off EXIF reading. However, why would that be desirable on a per-album basis? I would think it would be needed site-wide, or on a per-user basis (on the theory that a perticular user would have the issue). On the other hand, as a programmer, I lean toward the "let's make a script for that camera" so that it can be done "right", and thus help all users with that camera model. I'd be happy to look into this, but it won't be too soon. I currently have a few jobs I'm working to finish up, and PHP is not one of my primary languages. image default title - Blue Dragonfly - 17-05-2010 I created a ticket for this: http://www.zenphoto.org/trac/ticket/1508 If nobody else gets to it before I have a chance in a week or two, I'll tackle it myself. image default title - gjunk - 17-05-2010 Thanks! I was thinking per album as I imagined all (most) images in each album probably came from same camera - but a different album may be a newer (better) camera without the bad exif data problem - so problem albums could easily be switched to ignore it. Since I find the concept of using metadata very attractive I would not want it to be off per site, or def not for all users. Just seemed like a simple solution with low maintenance! Thanks for thoughts and help. Any suggestions how I can make zen lose its memory and refresh new metadata (as per above) ? Thank you !! gene/ image default title - Blue Dragonfly - 17-05-2010 I think managing per-album metadata exclusions would be a lot more trouble than it's worth, leading to potentially more confusion as to why the data shows up for some pics but not for others. There's already a button to refresh metadata for the gallery or for a specific album. Once the Minolta maker script is done, refreshing will update all that metadata as well. image default title - gjunk - 17-05-2010 I pressed the refresh meta data button in overview but the memory of the old exif:ImageDescription field (which was edited out and is now blank) lives on somewhere in zen - refresh did not clear it. image default title - acrylian - 17-05-2010 Refreshing meta data will of course not clear your already wrong set image titles. (then it would delete it for anyone everytime!). you have to edit the title field manually. Or you have to reupload the images so Zenphoto considers them as new. image default title - gjunk - 17-05-2010 Oh poop - I guess I can delete the entire site - and start over. image default title - gjunk - 17-05-2010 Wait - what if the metadata is changed manually in an image (edited or deleted) - refreshing metadata wont pick it up ? Then what does refresh metadata actually do - if not read and update the metadata ? image default title - acrylian - 17-05-2010 It does that but only for hte meta data database fields, not for the normal image title and description fields. image default title - gjunk - 17-05-2010 Maybe I understand - does zen have a flag to indicate whether title information etc came from metadata or came from user direct input into zen ? If not - i understand the behaviour. image default title - acrylian - 17-05-2010 No, it does not flag from where the data in hte normal fields come from. On initial import Zenphoto uses the exif title for the image title of course but not on refresh as that could override manual changes which is mostly not wanted. Btw, you don't need to delete the whole site. Just move the albums out of the albums folder. Then access the site and they are gone for Zenphoto. Now move them back and Zenphoto will import them new and uses the meta data if available again. image default title - gjunk - 17-05-2010 Okidok - thank you - I will hide the albums directories and put them back after zen processes their absence .. image default title - sbillard - 17-05-2010 Well, actually, if the metadata has changed, Zenphoto will update its database. Unfortunately, you are experiencing the one "exception" to that. Setting the data to empty is roughtly equivalent to not having such data. Zenphoto only uses "real" data for setting the title. There are a number of sources for the title in the metadata. If any are proivded then they will become the database tile. Otherwise the existing title will remain. image default title - gjunk - 17-05-2010 Ah that makes perfect sense ... thank you. And good to know it will pick up additions/changes (rather than deletions). Can you say which fields exactly are used for titles and also desriptions ? I am thinking it might be possible to make a table of all titles and descriptions and then scripting a bulk edit to read that table and create good metadata for the corresponding image files. image default title - sbillard - 17-05-2010 Best to look up the class-image method |