IPTC keywords to categories automatically?

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

element
Posts: 5
Joined: Fri Jun 20, 2008 12:10 am

IPTC keywords to categories automatically?

Post by element » Fri Jun 20, 2008 12:47 am

I'm new to XnView. First off, I'd like to commend you on how well-written XnView is. It's amazing that XnView's installation is 3.5MB and iMatch's is 60MB, yet xnView handles 99% of the image filing/tagging/browsing tasks I use every day.

I did a forum search and it appears that the answer is no, but I'll ask anyway. Is there currently a way to process an image collection and automatically create XnView categories from IPTC keywords? I don't need a hierarchy of categories, a flat list will do.

In general, when categorizing images, I want to rely only on keywords in the files, so that the effort I'd put into keywords remains portable between apps, and is not broken by changes to the file system. On the other hand, I want the benefits of app-specific categories: instant access and fast searches.

The only way I can think of to do this right now, is to manually search the collection for an IPTC keyword, wait a few minutes till the search is done, assign the found images to a new category - repeat for each keyword. Very tedious and inefficient, since the whole collection needs to be searched many times, instead of once.

I realize that such an automated system of category management would have to scan all files every few weeks or so (or on demand) to refresh the category list. That's OK, as long as I don't have to do this manually.

Guest

Post by Guest » Fri Jun 20, 2008 7:55 am

Hi Element,

I also think this would be a good idea: As soon as you browse a folder, all IPTC keywords of the pictures in this folder should be added to the XnView category list (or, if the keyword is already in the Xnview category list, the "new" pictures should be linked to the already existing XnView category).

This wouldn't have to be done every few weeks or so, if the assignment of new IPTC keywords to pictures worked vice versa: I.e., just drag a picture or several pictures to an XnView category, and this category is written to the IPTC keyword list. Picajet (which is in many respects a buggy and inefficient program) does ist like that - it works brilliantly!

Frank

User avatar
xnview
Author of XnView
Posts: 31724
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC keywords to categories automatically?

Post by xnview » Fri Jun 20, 2008 12:13 pm

element wrote:IIs there currently a way to process an image collection and automatically create XnView categories from IPTC keywords? I don't need a hierarchy of categories, a flat list will do.
No, but i'll add it
Pierre.

Guest

Post by Guest » Sat Jun 21, 2008 12:54 am

Peronally, I'd prefer if XnView scanned all files, as opposed to adding categories only from pictures I've browsed. When I want to see images tagged with "car", I want to see all images with cars, not just the ones I've browsed.

Here are the reasons why I'm proposing a one-way sync (keywords to categories only, not vice versa):
1) One-way sync is much easier to code and thus more likely to get implemented sooner, and I need this feature now. :)
2) One-way sync is far less touchy and error-prone compared to two-way sync. I'm referring to both user mistakes ("oops, did I just overwrite all my keywords...?!") and software bugs.
3) I don't know about you, but XnView is not the sole source of my IPTC keywords, so it can't keep track of keywords coming in from other sources. E.g., I wrote a Perl script which updates IPTC keywords based on the image path, so that images filed under ".../architecture/Baroque/Italy" are automatically tagged with "architecture", "Baroque", and "Italy". I do this is because I hate manual tagging and I prefer if software does it for me (since I have to file incoming images somewhere, I may as well put them in meaningfully named folders). I believe PicaJet can also do this.

BTW, my script reports that there are currently ~1000 distinct keywords in my collection. If we're going to create categories based on keywords, I may want to limit the number of categories to, say, top 50 based on frequency, or use a project-specific list. E.g., if I'm working on a project involving architecture, I'd give XnView a list of keywords I'm interested in, like "architecture", "church", "monument", "castle" etc. XnView would scan the files and categorize them using only those keywords. In this way, XnView would have to manage only a few categories and I wouldn't have to wade through 1000 irrelevant entries in the list. These category "sets" could also be saved for future use, so that if I ever need the "Architecture" category set again, I can load it up, have XnView refresh it and off I go.

I'm trying to make this proposal as bare-bones as possible, so that it actually gets implemented... :)

element
Posts: 5
Joined: Fri Jun 20, 2008 12:10 am

Post by element » Sat Jun 21, 2008 12:57 am

Oops, the above message was posted by me, element, but I wasn't logged in properly. It's in reference to:
This wouldn't have to be done every few weeks or so, if the assignment of new IPTC keywords to pictures worked vice versa:

User avatar
xnview
Author of XnView
Posts: 31724
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Sat Jun 21, 2008 1:29 pm

Anonymous wrote:Peronally, I'd prefer if XnView scanned all files, as opposed to adding categories only from pictures I've browsed. When I want to see images tagged with "car", I want to see all images with cars, not just the ones I've browsed.
What do you means by "scanned all files"?? You would like that xnview check all files on your drive?
Pierre.

element
Posts: 5
Joined: Fri Jun 20, 2008 12:10 am

Post by element » Thu Jun 26, 2008 3:02 am

No, of course XnView shouldn't scan all files on disk, just my picture collection. I'd select the collection folder in a dialog box I'd get when making categories from IPTC tags. Better yet, the collection folder would be specified by the user in XnView's options. By "all files" I mean that categories should reflect the entire collection, not just the images I've browsed so far.

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

Re: IPTC keywords to categories automatically?

Post by PSHRutPark » Fri Jun 27, 2008 10:40 am

xnview wrote: No, but i'll add it
Hello Pierre,

This would be a very useful function.

When is this likely to be implemented?

Thanks

PETER

Laryx

Post by Laryx » Sat Jun 28, 2008 5:16 am

Wow, I need this feature ! :)

I have old photo archive with categoties, which were created by PicaJet.

Now PicaJet is dead product, and so, I search another one.

I like XnView, but I need restore the big categories tree from old program.

PicaJet can store all categories into IPTC. Now I want to restore all stored categories into XnView. But XnView can't do it !

Well, I can try write addon, which can create XnView categories from IPTC (easy, plain, or PicaJet format tree). Where I can download Addon SDK (I can't find it) ?


Guest

Post by Guest » Sat Jun 28, 2008 10:31 am

Wow ! Thank you for very fast answer. I have downloaded SDK and will try to write PicaJet import plugin. (And, by the way, category saver/restoretr into IPTC)

Laryx

Post by Laryx » Sat Jun 28, 2008 11:06 am

It's pity, but plugin SDK hasn't possibilities for categories access (as I have understood).

I need in:

1. Take filename from XnViev (+)
2. Create category names by metadata or by any anothed data from file. This is the main contents of plugin. (+)
3. Send created category to XnViev (-)

First and second steps are possible.
Third step is impossible (as I have understood)

element
Posts: 5
Joined: Fri Jun 20, 2008 12:10 am

Post by element » Wed Jul 02, 2008 7:35 am

Laryx wrote:Now PicaJet is dead product, and so, I search another one.
Huh? Is PicaJet going out of business?

User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

The search result to a custom category

Post by oops66 » Wed Jul 02, 2008 4:44 pm

Hello,
It would be better if in a next XnView version, the search result could be stored directly as a new custom category (as option) not only for the IPTC keywords result .
http://newsgroup.xnview.com/viewtopic.php?t=15417
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

Guest

Post by Guest » Wed Nov 26, 2008 10:36 am

indeed I think it would be useful whenever I assigned an image to a category to also add the category to the keywords in the IPTC tags

Post Reply