Author Topic: Auto IPTC into discription field when check new images  (Read 32060 times)

0 Members and 1 Guest are viewing this topic.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Auto IPTC into discription field when check new images
« Reply #15 on: October 09, 2002, 10:22:57 PM »
Quote from: Jan
See the first function get_iptc_insert_link() in "admin/admin_functions.php". There you will find the code how to handle the date and the keywords.

Jan



And, what in this file I need to correct? Help me please. :?:
My English too bad.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Auto IPTC into discription field when check new images
« Reply #16 on: December 16, 2002, 12:51:40 PM »
Sorry this is I again. I get some good rezults, I have automate caption and date information, but  I can't have good rezult with keywords. Explane me please !!!!!
My English too bad.

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
What is IPTC system How to do that???
« Reply #17 on: December 17, 2002, 01:41:03 AM »
I am beginner in this program, could any body explain?
What is IPTC system How to do that??? :o  :o

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
International Press Telecommunications Council
« Reply #18 on: December 17, 2002, 02:59:55 AM »
Check out www.IPTC.org for more info.
Quote
IPTC is a standard of The International Press Telecommunications Council, and was designed to identify transmitted text and images.

This standard includes entries for captions, keywords, categories, credits, and origins. IPTC is supported by programs such as Adobe Photoshop, PhotoThumb, and most professional image database software.

IPTCExt is a free shell extension for Windows that adds shell support for viewing and editing IPTC info in JPEG image files.


Since this is FREEWARE, I'll post the link:  http://photothumb.com/iptcext/


Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Auto IPTC into discription field when check new images
« Reply #19 on: December 17, 2002, 06:17:23 AM »
If you use photoshop in FILE\FILE INFO you can discribe you photo. Also you can easy do it in FOTOSTATION/ Then you upload photos to your 4images site via FTP and check NEW IMAGES. near the fields for discription, date and keywords you will see buttons to move information from IPTC info. If you will click it , all that you wrote in FILE INFO will be copy in this field, it is very comfortable. And in this topic I try to understand how can I automate this without pressing buttons.
Sorry my english very bad. I have good rezult with discription and date but with keyword I have mistake.
My English too bad.

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
Thanks !!!! Jan can you fix the code please
« Reply #20 on: December 17, 2002, 08:38:09 AM »
I think this is the feature I want it ....
Jan could you fix the code please???
Is it ACDsee version 4 have IPTC ??

 8)  8)

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Auto IPTC into discription field when check new images
« Reply #21 on: December 17, 2002, 01:49:07 PM »
ACDSee 5 has IPTC but it not comfortable. I recomend you FOTOSTATION
http://www.fotoware.com/  or ThumbsPlus http://www.cerious.com/.
My English too bad.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Thanks !!!! Jan can you fix the code please
« Reply #22 on: December 17, 2002, 02:00:04 PM »
Quote from: mantra
Jan could you fix the code please???

There is nothing broken in the code so what is there to fix?  Please understand that what you're asking is for a feature enhancement to the product, not a bug fix.  Jan is under no obligation here.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Auto IPTC into discription field when check new images
« Reply #23 on: December 17, 2002, 02:09:00 PM »
I dont have in my mind that code is broken. Jan explaned what to do and I resive some good rezults, but I dont understand all good, because I dont know PHP, I am not a programist.  Thanks to Jan I change something in this file, but with keywords I made something wrong. I understand that EDWIN made this too and resive a good rezult, I dont understand something and I hope that somebody can help me. Sorry for my bad English.
My English too bad.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Auto IPTC into discription field when check new images
« Reply #24 on: December 17, 2002, 04:42:53 PM »
Quote from: fotograf
I dont have in my mind that code is broken.

Sorry if there was some confusion.  My reply was directed to mantra.

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
OK Chris, I thought the code doesn't work
« Reply #25 on: December 18, 2002, 02:25:58 AM »
OK Chris, I thought  the code doesn't work with the keyword.
I meant if somebody can help with this problem it will be good Mood.
 8)

Because
most of people use this program not just show their images but need more word to explain the picture ,so adding  the description each images is important, if this proces more quick or easily that will be good.

BTW : this program help me a lot Thanks to all developer .
 :)  :) [/b]

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Auto IPTC into discription field when check new images
« Reply #26 on: December 19, 2002, 10:49:43 AM »
mantra  If I understand you  have good rezult with discription and date too ??
My English too bad.

Offline Yogen

  • Newbie
  • *
  • Posts: 25
    • View Profile
Auto IPTC into discription field when check new images
« Reply #27 on: April 21, 2003, 11:53:06 AM »
hi folks,

jan, please check out this actual code in my admin/checkimages.php if it is correct, 'cause it doesn't work for me :-(
i'm using V 1.7 and my prob is to be sure that i've done all correct cause the thread belongs to 1.6
in the admin_functions.php i didn't change anything ... should i ??
and what ?

if i'm right in my understanding of the MOD, after the upload and checking new images, the iptc infos should be shown in the keyword-column of the normal pic-description table ??!!

antwort gerne auch in deutsch ;-)

geänderter code: 19:18, 29. april 03

Code: [Select]
     $title = $lang['field_description_ext'].((isset($file_src)) ? get_iptc_insert_link($file_src, "caption", "image_description_".$i) : "");

//old: show_textarea_row($title, "image_description_".$i, "", $textarea_size);

//new version
$caption = "";
if ($imageinfo = @getimagesize($file_src, $info)) {
  if (isset($info['APP13'])) {
    $iptc = iptcparse($info['APP13']);
    if (is_array($iptc)) {
    }
  }
}

  if (isset($iptc['2#055'][0])) {
  $caption = $iptc['2#055'][0];
  $caption = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $caption);
 }

if (isset($iptc['2#025'])) {
  $caption = "";  
  foreach ($iptc['2#025'] as $val) {
    $caption .= (($caption != "" ) ? " " : "").$val;
  }
}
 

show_textarea_row($title, "image_description_".$i, $caption, $textarea_size);
//ende new version


// neue date version
      $date = date("Y-m-d H:i:s", time());
 if ($imageinfo = @getimagesize($file_src, $info)) {  
  if (isset($info['APP13'])) {  
    $iptc = iptcparse($info['APP13']);  
    if (is_array($iptc)) {  
      if (isset($iptc['2#055'][0])) {  
        $date = $iptc['2#055'][0];  
        $date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $date);  
      }  
    }  
  }  
}
// ende neue date version

      $title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_iptc_insert_link($file_src, "date_created", "image_date_".$i, 0) : "");
      show_input_row($title, "image_date_".$i, $date, $textinput_size);



thnx for any help !!

Yogen

Offline Yogen

  • Newbie
  • *
  • Posts: 25
    • View Profile
Auto IPTC into discription field when check new images
« Reply #28 on: April 28, 2003, 01:01:03 AM »
hi folks, again,

is there anybody who has version 1.7 with this MOD running ????

IF, THEN please send the changed files per mail or please post the changes here...

email: yogen@gmx.de

thx !!

Yogen

Offline mdevane

  • Pre-Newbie
  • Posts: 5
    • View Profile
Auto IPTC into discription field when check new images
« Reply #29 on: May 17, 2003, 08:29:31 PM »
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.
Thanks, Mark