IPTC handling

2»

Comments

  • kyrd Member
    in my previous installation -though it was not so long time ago- the keywords were smoothlessly imported as tags, as you say.
    now I simply can't select between "show" and "hide", they're both greyed out, and the "don't process" checkbox once selected can't be unchecked anymore (I had to go back to previous page without applying changes in order to uncheck it).
    I've also tested it applying the "don't process" option, and of course nothing changed.
    I'll try to reinstall...
  • kyrd Member
    reinstalled 2012-04-04-development on top of the previous, the keywords options are now better, as only "show" is greyed, but no difference either if I check "hide" or "don't process" option. tested both, but no tag displaying.
    what am I doing wrong?
  • Tags are NOT part of the metadata display as said (thus the show is not enabled.) You can use one of the Zenphoto function `printTags()` to show tags. Also you will have to refresh the image metadata since when it was first processed the `Keywords` metadata was set to `don`t process`.
  • kyrd Member
    sorry but no, it isn't working. the image.php and sidebar.php are the same working in the first install (last official build), where the tag functions work.
    tried everything you suggest and more, but nope.
  • I suspect you should get a better image metadata handling program. Your Keywords are in XMP and the rest of your data is IPTC. Really no reasonable application should mix these two--that just causes this kind of confusion.

    Enable the XMP metadata plugin and set its options to process jpg images.
  • kyrd Member
    if it's there, the xmp mixing is not due to the tool I use.
    at the time of your answer there was already online another test image with no xmp data http://www.indirizzofantasma.net/gallery/test/0069_noxmp_v2.jpg.php, still the keyword is there and it's written in its iptc field, not retrieved.
    moreover zenphoto was/is working well with keywords handling in the installation with 1.4.1.6 [8326] build.
    http://www.indirizzofantasma.net/zenphoto/numeri-civici/69/0069_noxmp_v2.jpg.phphttp://www.indirizzofantasma.net/
    same photo/file, same php file and functions, same admin options (except for the new checklist), but different output.
  • Well, it is certainly not due to Zenphoto.

    Your call, but the image has mixed XMP and IPTC data. I think we are done with this topic. Zenphoto is dealing correctly with the data it is presented with and the options you have chosen.
  • acrylian Administrator, Developer
    @kyrd: I asume you expect tags on the right sidebar. Since that reads "No popular tags" you probably use the tag statistics function. If you have no popular tags those are of course not displayed (when they are is a matter of the options of that function). The functions for individual tags are completly different ones.

    You are using a customized Zenage theme so you perhaps changed something wrong?
  • Just FYI this is the image you provided: http://testalbum.sbillard.org/index.php?album=xyzzy&image=0000.jpg complete with your content location and teh "finestrata" tag.
  • kyrd Member
    @acrylian - yes, it's customized and working well in my official website http://www.indirizzofantasma.net/zenphoto/. I might come back to this issue in a separate thread, thankyou.

    @sbillard - yes you can consider the (so long!) topic closed, I've solved the issue by going back to the official build, 'cause the nightlybuild is IMHO not dealing well with the embedded keywords, while the official works perfectly.
    but that's another issue, as I said above.

    @anyone - who dares reading this thread and is interested, this is how I solved the issue in few simple steps:
    1. reinstalled another zenphoto 1.4.1.6 [8326] http://www.indirizzofantasma.net/test2/
    all settings and custom theme were replicated from my working site.
    2. created an album containing the same 2 testing photos used for testing 'till now. one has XMP datas, the other only IPTC
    e.g. album: test pre_mod
    note that I've added via admin a tag "selected" to one file. both the embedded keyword "finestrata" and the zp generated "selected" where showing in sidebar and in the info table beside the image, together with all metadata except the one I want to retrieve
    3. via myPhpAdmin added 2 fields to the `image` table, right after IPTCLocationName:
    `

    IPTCContentLocationCode varchar(3) ...

    IPTCContentLocationName varchar(64) ...

    `
    4. opened zp-core/class-image.php and found
    `'ContentLocCode' => '2#026',

    'ContentLocName' => '2#027',

    `
    changed to
    `'ContentLocationCode' => '2#026',

    'ContentLocationName' => '2#027',

    `
    5. opened zp-core/functions.php and found `static function setexifvars()`
    added the following 2 lines to the array, where it maked sense:
    ` 'IPTCContentLocationCode' => array('IPTC', 'ContentLocationCode', gettext('Content Location Code'), false, 3, true),

    'IPTCContentLocationName' => array('IPTC', 'ContentLocationName', gettext('Content Location Name'), false, 64, true),

    `
    6. created via admin another album, exactly the same as the previous one, except no "selected" tag was added
    e.g. album: test post_mod
    7. done!
    the files uploaded before the above described mod didn't show the wanted field, but those uploaded after where finally showing that field
    e.g. Cannaregio
    8. as a next step, I've used the refresh metadata admin tool.
    the result is that the tag "selected" was cleaned out, while the Content Location Name appeared also in the test pre_mod files.

    so after 2 weeks and a lot of time spent on it I know that I only need to re-assign the "selected" tag to a 100 photos in my "official" website...
    ;-)
  • acrylian Administrator, Developer
    Note that the current release is 1.4.2.3….
  • kyrd Member
    I prefere to not upgrade now, as something wasn't working as I expected with the nightly build (e.g. loosing embedded keywords).
    FYI I've refreshed the metadata in my "official" website.
    I was expecting to loose the selected tag for 101 photos. note that this tag wasn't embedded as keyword but assigned via zenphoto admin.
    misteriously "only" 49 photos had the selected tag washed out.
    after some investigating I came to this conclusion:
    if
    there was some keyword embedded and the selected tag: the selected tag have been erased when I refreshed the metadata
    otherwise
    the selected tag was mantained in its place.
    hope this can help.
Sign In or Register to comment.