Page 2 of 2

Re: Import XMP data

Posted: Thu Dec 09, 2010 8:46 am
by PSHRutPark
My observations using 0.32 are:

Using a "." separator, the hierachical key words are partially imported with TIFF files (ie not all categories) and not at all with NEF and JPEGs.

The hierachical categories that are imported are not shown as a " branched" hierachy in the Catergories pane, with some listed at the top level and others under "Other" default group.

I'll try and be more specific with more testing.

Peter

Later: All my test images JPG and TIFF are derived from NEFs. In 0.32 the XMP tab in not shown for both NEFs and JPGs, but is for TIFFs (derived from NEFs). All images correctly show IPTC information in the IPTC tab. So the absence of imported Category data for NEFs and JPGs may be to do with the XMP data not being read.

Re: Import XMP data

Posted: Thu Dec 09, 2010 8:49 am
by xnview
PSHRutPark wrote: Using a "." separator, the hierachical key words are partially imported with TIFF files (ie not all categories) and not at all with NEF and JPEGs.
Could you send me samples, please?
The hierachical categories that are imported are not shown as a " branched" hierachy in the Catergories pane, with some listed at the top level and others under "Other" default group.
By default, hierarchy is added in 'Other' if the keyword doesn't exist...

Re: Import XMP data

Posted: Thu Dec 09, 2010 8:57 am
by PSHRutPark
xnview wrote:
PSHRutPark wrote: Using a "." separator, the hierachical key words are partially imported with TIFF files (ie not all categories) and not at all with NEF and JPEGs.
Could you send me samples, please?
The hierachical categories that are imported are not shown as a " branched" hierachy in the Catergories pane, with some listed at the top level and others under "Other" default group.
By default, hierarchy is added in 'Other' if the keyword doesn't exist...
Thanks Pierre. Will try and sort some example files to send.

Also, see my additional notes to my first post.

Re: Import XMP data

Posted: Fri Dec 10, 2010 12:05 am
by njwood60
I deleted xnview.db, but still doesn't work

Roumano said in a post above "At this moment, when i need to do that, i'm showing all picture via 'view recursif '"

I'm not quite sure what he means, but is there an option I need to choose from the menu to do the import of XMP?

Thanks again for your help

Re: Import XMP data

Posted: Fri Dec 10, 2010 6:20 am
by Roumano
Hi,

Just do that :
(before don't forget to select import from xmp in the option/metadata

Re: Import XMP data

Posted: Fri Dec 10, 2010 6:56 am
by Roumano
Tu a marqué "Ok, j'ai trouvé..."
> c'est a dire, c'est bug que tu a compris ? vas ou a résolu ?

By default, hierarchy is added in 'Other' if the keyword doesn't exist...
> Annoying (if you start/restart with a new xnview.db)
So i need to create in XnVIew all categories manually ?

Re: Import XMP data

Posted: Fri Dec 10, 2010 7:28 am
by njwood60
Roumano wrote:Hi,

Just do that :
(before don't forget to select import from xmp in the option/metadata
Hi Roumano

Thanks for your reply.

Yes I tried that but no categories import.

Note that I tried manually adding in the correct categories but the XMP did not import. (Tried clearing the cache as well)

Maybe it is a bug?

My images are all .jpg

Re: Import XMP data

Posted: Fri Dec 10, 2010 1:04 pm
by xnview
njwood60 wrote: Yes I tried that but no categories import.
There is a bug in 0.32, please wait 0.33

Re: Import XMP data

Posted: Fri Dec 10, 2010 1:33 pm
by njwood60
xnview wrote:There is a bug in 0.32, please wait 0.33
OK Great - thanks for investigating

Re: Import XMP data

Posted: Sat Dec 11, 2010 2:04 pm
by Roumano
Hi,
The database of Xnview is a Sqlite3 so, we can import previous tags (from 0.26 version to 0.32 version) by sqlite command.
I'm not a expert, but i have found one solution (more simple maybe exist) :

Create a backup before play with your database !!!
Close Xnview
sqlite3 ~/.xnviewmp/XnView.db
sqlite> attach '/home/roumano/Bureau/Telecharger/XnViewMP-026XnView.db' as source;
sqlite> delete from tags;
sqlite> insert into tags select * from source.tags;

Re: Import XMP data

Posted: Sun Dec 12, 2010 1:43 am
by njwood60
Hi Roumano

Thanks heaps! this works really well to import the categories.

With the .33 version, this should make the XMP import easier

Re: Import XMP data

Posted: Sun Dec 12, 2010 4:02 am
by Roumano
you welcome,
i also thinking about that, before stop using 0.26 version and loose the db
if i have some photo with tags but not stored on the image, store only one xnview.db ? :

So i have create a extract of the db of all file which they have tag :

sqlite3 XnView.db
.output xnview.txt
SELECT
pathname,filename
FROM images,tagstree,tags,folders
WHERE (images.imageid = tagstree.imageid)
AND (tagstree.tagid = tags.tagid)
AND (folders.folderid=images.folderid)
AND (tags.label != '');

Then
change the | to / and resolve problem with space :
cat xnview.txt |sed -e 's/|/\//'|sed -e 's/\ /\\\ /g'> xnview2.txt
then loop to the file and test it :
while read line;do if [ -f ${line} ] ; then exiftool ${line}|grep -q 'Hierarchical Subject : Photographies' || echo "$line";fi;done< xnview2.txt

It not perfect but can help ...

Re: Import XMP data

Posted: Thu Dec 23, 2010 7:52 pm
by xnview
Please check XnViewMP v0.33