Import XMP data

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

PSHRutPark
Posts: 137
Joined: Tue Sep 12, 2006 8:38 pm
Location: New Zealand

Re: Import XMP data

Post 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.
Last edited by PSHRutPark on Thu Dec 09, 2010 8:54 am, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Import XMP data

Post 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...
Pierre.
PSHRutPark
Posts: 137
Joined: Tue Sep 12, 2006 8:38 pm
Location: New Zealand

Re: Import XMP data

Post 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.
njwood60
Posts: 7
Joined: Tue Dec 07, 2010 12:44 pm

Re: Import XMP data

Post 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
Roumano
Posts: 115
Joined: Sun Oct 10, 2010 6:20 pm

Re: Import XMP data

Post by Roumano »

Hi,

Just do that :
(before don't forget to select import from xmp in the option/metadata
Attachments
xnview.png
xnview.png (28.59 KiB) Viewed 1853 times
Roumano
Posts: 115
Joined: Sun Oct 10, 2010 6:20 pm

Re: Import XMP data

Post 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 ?
njwood60
Posts: 7
Joined: Tue Dec 07, 2010 12:44 pm

Re: Import XMP data

Post 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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Import XMP data

Post by xnview »

njwood60 wrote: Yes I tried that but no categories import.
There is a bug in 0.32, please wait 0.33
Pierre.
njwood60
Posts: 7
Joined: Tue Dec 07, 2010 12:44 pm

Re: Import XMP data

Post by njwood60 »

xnview wrote:There is a bug in 0.32, please wait 0.33
OK Great - thanks for investigating
Roumano
Posts: 115
Joined: Sun Oct 10, 2010 6:20 pm

Re: Import XMP data

Post 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;
njwood60
Posts: 7
Joined: Tue Dec 07, 2010 12:44 pm

Re: Import XMP data

Post 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
Roumano
Posts: 115
Joined: Sun Oct 10, 2010 6:20 pm

Re: Import XMP data

Post 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 ...
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Import XMP data

Post by xnview »

Please check XnViewMP v0.33
Pierre.
Post Reply