thanks for the reply.
Yes, I've actually downloaded the tagging tools for both pytfall and brothel kind when I started thinking about this problem
I've also looked at the tagging at sites like danboruu, but the've got 1000s of tags, so even just looking at them all would take a lot of time.
I'm planning to skip using the file system altogether for determining the tags of an image, and instead have an additional xml / json file that contains the tags for all images in a directory. Filename based tagging would then be only a fallback if no such file exists. Then you can use the same pack for the old and the new version, by naming the files according to old tags but specifying the new tags in the xml file.
I've also started working on a demo implementation in python, though I haven't had much time recently. This has already revealed a few problems:
1) Positive-only selection is problematic (already described in the first post a bit): What I mean is that if you specify which image you want by a list of tags the image should have, you get many unwanted images that have additional tags (e.g. you ask for a "sex" image, and get "sex,bdsm" image which is probably inappropriate in the game context). Now, with just a few tags, you could just make your specification more precise (e.g. "sex" tag, but not "bdsm" tag) but with fine-grained tagging with would explode ("sex", but not "spanking", "tied-up", "gagged", ...), and would result potentially in a lot of work when a new tag is added. Thus my idea is to have a small set of coarse-grained tags (e.g. "BDSM", "SEX", "PROFILE", "ACTIVITY") and always restrict the search for images to ones with the correct primary tag. This would also cut down a bit on the amount of computation required to find a fitting image.
2) Non-contradicting tags: For some rare (few image) tags, a common strategy of pack makes seems to be to tag pictures that do not actively contradict that tag. For example, for any "preg" variant of a tag, choose an image where you cannot see the belly. This has the disadvantage that if someone produces an add-on pack that actually contains these images, the "wrongly" tagged images will end up mixed in. Similarly, there are some softcore packs where the "sex" tag is applied to some non-sex images to ensure that category is not empty. Therefore, I'll probably give packmakers the option of providing a list of fallback tags for the image. Then the game would first try to find a matching image using "real" tags, if that fails it would add the fallback tags, and if that still fails it would look through the default images.
3) Tagging images with multiple people. This is not really a problem for girl packs, where you can argue that all the tags apply to the main girl, but for tagging the default/fallback images this is not so easy. So I'll maybe split the tags into image-level tags and character-level tags, and allow multiple lists of character-level tags for each image.
The really nice thing about a working fine-grained tag system is that once it is implemented, I hope that I'll be able to provide a tagger program that should be able to export the set of tagged images as a WM6 pack; Pytfall pack; BrothelKing pack and WM7 pack. That would be really nice