Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mdevane

Pages: [1]
2
Bump

Jan - Any suggestions on how to fix this bug?  Can't publish site without it.

thx much for your help.

3
Quote from: Jan
For keywords, replace
Code: [Select]
show_textarea_row($title, "image_keywords_".$i, "", $textarea_size);
with
Code: [Select]
$keywords = "";
if ($imageinfo = @getimagesize($file_src, $info)) {
  if (isset($info['APP13'])) {
    $iptc = iptcparse($info['APP13']);
    if (is_array($iptc)) {
      if (isset($iptc['2#025'])) {
        foreach ($iptc['2#025'] as $val) {
          $keywords .= (($value != "" ) ? " " : "").$val;
        }
      }
    }
  }
}
show_textarea_row($title, "image_keywords_".$i, $keywords, $textarea_size);


Jan - when I tested this mod, it does autopopulate the keywords field, but each IPTC keyword in my images is delimited by <CR>, and the autopopulate mod concatenates the fields together into a single string in 4images.  When I use the built-in standard manual feature on the same images, it works perfectly and the fields are delimited by spaces, as they should be.

Can you review the code to verify my problem?  It is possible that keywords may be delimited by different characters (<CR>, <,>, <tab>, etc.), depending on the system which was used to create them.

4
Hi Jan - Tested your mod and it works very well.  Unfortunately, it requires uploading the high/alt res photos into the same directory as the base image.  This could cause all image resolutions to be "checked" into the database, if the user were not careful.

Could this hack be modified to locate the alternative resolution images into a subdirectory (e.g - yoursite/4images/data/media/#/72dpi or  yoursite/4images/data/media/#/150dpi)?  This would minimize chance of indexing the alternate resolution images using the batch upload capability.

5
Jan - First of all - Excellent program  :D .  I am considering building a few new sites for my kids' sports teams.  I would like to use 4images, but I typically shoot 100-150 pictures per sports event 4-5 times per week, and I use a batch IPTC editor to add captions, keywords, etc as part of my standard workflow.  

I was able to understand and modify the code for date and caption per above, but I could not understand the final instructions for Keywords replacement, which is probably the most critical.  

Could you repost the hack for automatic IPTC keyword replacement?

btw, the automatic function of IPTC replacement would make excellent addition to the codebase for your next release, since your audience would grow to include more professional photographers who, like me, tend to deal with large numbers of photographs.  Batch functionality is a basic necessity in this business.

Pages: [1]