1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #608 (new enhancement)

Opened 4 years ago

Last modified 3 years ago

IPTC:ObjectName -> Title not being added while importing

Reported by: thiagopcarvalho Owned by:
Priority: major Milestone: 3.2
Version: 3.0 Beta 3 Keywords:
Cc: mamoun.diraneyya@…

Description

Date/Keywords/Description are being perfectly added to the DB after extraction from Image MetaData? (EXIF/IPTC).

The only important field that is missing to be imported from MetaData? in G3 as we had in G2 EXIF/IPTC Module is the ObjectName? which is used on most Photo Programs (i.e. iPhoto, Aperture) as the title for the picture.

I cant say if this was forgotten (since we had that on G2 and the modification shouldnt be too difficult as we already have the code for other MetaData?) or chosen not to be used, which would be a shame since many photographers use IPTC/EXIF to easely migrate between programs without losing info or having to rewrite them.

I attached a picture with the IPTC ObjectName? written on it so you can have the example.

Note: This is a ticket opened after a small discussion on the forum, which can be read here: http://gallery.menalto.com/node/89365.

Attachments

DSC00448.jpg (114.1 KB) - added by thiagopcarvalho 4 years ago.

Change History

Changed 4 years ago by thiagopcarvalho

  Changed 4 years ago by tnalmdal

  • type changed from defect to enhancement
  • milestone changed from 3.0 Beta 3 to 3.1

follow-up: ↓ 4   Changed 4 years ago by rtholmes

This is related to ticket #499.

  Changed 4 years ago by thiagopcarvalho

  • version changed from 3.0 Beta 2 to 3.0 Beta 3

I've managed to achieve the changes needed in order for this to work.

Here they go (gallery3/modules/exif/helpers/exif.php):
1) Change

        foreach (array("Keywords" => "2#025", "Caption" => "2#120") as $keyword => $iptc_key) {

To

        foreach (array("Keywords" => "2#025", "Caption" => "2#120", "ObjectName" => "2#005") as $keyword => $iptc_key) {

2) After

if ($keyword == "Caption" && !$item->description) {
              $item->description = $value;
            }

Add

if ($keyword == "ObjectName") {
              $item->title = $value;
            }

3) After

"Caption"         => array("IPTC",   "Caption",           t("Caption"),          ),

Add

"ObjectName"      => array("IPTC",   "ObjectName",        t("ObjectName"),       ),

With this modifications the improvement I've requested and explained why I would want it above will work perfectly.

If possible, please include it on 3.0 and change the Milestone.

I hope this helps others who missed this function when upgraded from 2.3.

in reply to: ↑ 2   Changed 4 years ago by thiagopcarvalho

Replying to rtholmes:

This is related to ticket #499.

I dont quite agree since you think IPTC:ImageDescription/Caption should go on the title but I think IPTC:ObjectName should go on the title, which is what most photo softwares use.

  Changed 3 years ago by mamouneyya

  • cc mamoun.diraneyya@… added
Note: See TracTickets for help on using tickets.