Import more data IPTC

ahamada

Joined: 2007-04-10
Posts: 50
Posted: Fri, 2007-05-11 16:32

Hi
I want to display other data IPTC on a image?
How do?
What are the file that i must modify to import a new data IPTC:

The data that i want to import are

IPTC sublocation.
IPTC ISO Country Code.

Thank you!!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-05-11 18:12

there's a quite large list of exif / iptc tags to display at:
site admin -> exif / iptc

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
ahamada

Joined: 2007-04-10
Posts: 50
Posted: Fri, 2007-05-11 18:28

Yes i know but i want to import theses datas because IPTC sublocation and IPTC ISO Country Code are not in the list of exif/iptc
I want make a few development to import theses datas
What modules's file to modify? I don't know
I want to do these modifications for needed company.
Thanks!!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-05-11 18:46

modules/exif/classes/ExifHelper.class

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
ahamada

Joined: 2007-04-10
Posts: 50
Posted: Thu, 2007-05-24 14:58

Thanks valiant
I put the solution in public forum

so

There is two files to modify :

The firt one : ExifHelper.class

class ExifHelper

{
function getExifKeys() {
global $gallery;
static $data; // Tableau

"..............."

$data['IPTC/Sublocation'] =
array($gallery->i18n('IPTC: Sublocation'), 'IPTC.Sublocation');
$data['IPTC/CountryCode'] =
array($gallery->i18n('IPTC: CountryCode'), 'IPTC.CountryCode');

return $data;

}

The second one JPEG.inc in the directory exif/lib/JPEG/

class Jpeg

{

function &_iptcTagNames()
{
$tags = array();
".............."

$tags[0x5C] = 'Sublocation'; // 32 bytes max
$tags[0x64] = 'CountryCode'; // 3 bytes

return $tags;

}
One question : Dis you work on search module more precisely search iptc data
Thanks!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-05-24 15:20

> One question : Dis you work on search module more precisely search iptc data

no, you can't search exif/iptc data in g2 yet.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
ahamada

Joined: 2007-04-10
Posts: 50
Posted: Fri, 2007-05-25 10:21

It's envisaged? yOU don't kwow?

I work on module search and one version have even made by a developer of Gallery
The research make well
but there is a few bugs ans search multi data iptc is not possible

I work on this module because i want to search data iptc.
In the first time
I want so that the simple search made on all of Gallery data
Comment,Noyau,exif iptc
In second time
- To perform the interface of avanced search by putting data iptc ( I join you my graphics interface)

- So To do a new interface for advanced search and there would be a possibility to make a search multi-data ( boolean)

I join you the module to test it

And the administration did by module exif so you must install the modified exif module that i join you also.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-05-25 11:05

A Google Summer of Code student will work on a task this summer to put the exif/iptc data into the database.
That's the first step to make it searchable.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
tsfftf

Joined: 2007-02-02
Posts: 73
Posted: Tue, 2007-05-29 16:29

sdf

 
masplin

Joined: 2008-10-01
Posts: 49
Posted: Sat, 2008-10-04 14:53

noticed this post as trying to get location myself in the details. I have 2.2.6. i opened the ExifHelper.class fle and added the additional lines. I then opened JPEG.inc and was surprised ot see the lines were already there. It looks as if someone has done a part chane in the current release. I uploaded the edited ExifHelper.class and when I went back to the extra data in site admin I can now see IPTC sublocation and country code. I am completely new to Gallery so no idea who if anyone would be able to make the release version have the changes in both files so it works "out of the box" in future?

However having done this the information I have in Adobe Lightroom under "Location" hasn't appeared. Is this the same field does anyone know (I'm assuming Adobe is consisitent with their mapping)?

I am also struggling to find a field that contains dimension information. I tried every field that had lenght or wdith and all come up blank.

Any assitance greatly appreciated as after my first week feeling quite daunted!!!

 
judyn

Joined: 2007-10-25
Posts: 17
Posted: Sat, 2008-10-04 19:38

Mike, I posted in the Lightroom forum, but this forum is more appropriate. When I look at exports from Lightroom, I see my "location" content in the sub-location field. How did you do the test where you said you saw the IPTC sublocation and country code in Gallery?

I don't know if I have time now to dive into this again, especially at the risk of breaking my working galleries, sigh, but I sure would like to have it correct.

Judy

 
masplin

Joined: 2008-10-01
Posts: 49
Posted: Sun, 2008-10-05 09:10

Hi Judy

I recently downlaoded 2.2.6. Oddly JPEG.inc seems to already have these addiitonal lines added to the fiel. I opened the ExifHelper.class fiel and added the lines above and now i can see IPTC:Sublocation and IPTC:Country code in the field picker when you go to Site admin, IPTC/EXIF. However despite adding the fields to my details list I don't get anything. I'm not familair with the code so problably I haven't done it correctly. It seems liek someone has tried ot implement this in the current release, but it only got half done.

Any ideas where dimensions are hidding?

Mike

 
bradcapo1

Joined: 2009-07-21
Posts: 1
Posted: Tue, 2009-07-21 01:37

I am not so knowledgeable about this matter. So i have to learn it. Thanks for the post.

taux pret auto - taux pret auto differe selon la rise en compte ... calculent automatiquement le taux pour un prêt automobile donne.