Import XMP data
Moderators: helmut, XnTriq, xnview
-
- Posts: 137
- Joined: Tue Sep 12, 2006 8:38 pm
- Location: New Zealand
Re: Import XMP data
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.
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.
Re: Import XMP data
Could you send me samples, please?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.
By default, hierarchy is added in 'Other' if the keyword doesn't exist...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.
Pierre.
-
- Posts: 137
- Joined: Tue Sep 12, 2006 8:38 pm
- Location: New Zealand
Re: Import XMP data
Thanks Pierre. Will try and sort some example files to send.xnview wrote:Could you send me samples, please?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.
By default, hierarchy is added in 'Other' if the keyword doesn't exist...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.
Also, see my additional notes to my first post.
Re: Import XMP data
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 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
Hi,
Just do that :
(before don't forget to select import from xmp in the option/metadata
Just do that :
(before don't forget to select import from xmp in the option/metadata
- Attachments
-
- xnview.png (28.59 KiB) Viewed 1852 times
Re: Import XMP data
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 ?
> 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
Hi RoumanoRoumano wrote:Hi,
Just do that :
(before don't forget to select import from xmp in the option/metadata
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
There is a bug in 0.32, please wait 0.33njwood60 wrote: Yes I tried that but no categories import.
Pierre.
Re: Import XMP data
OK Great - thanks for investigatingxnview wrote:There is a bug in 0.32, please wait 0.33
Re: Import XMP data
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;
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
Hi Roumano
Thanks heaps! this works really well to import the categories.
With the .33 version, this should make the XMP import easier
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
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 ...
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 ...