Asset Tagging and Filtering File Types

I’m limited to searching by file name only for the KRA extension when saved to my system. My goal is to create a searchable library of my works. I noticed in CSP (Clip Studio Paint) a “Managed Works” feature that allows searchability (last screenshot).

Issue

  • I can export from Krita with tags using other saved image formats (second screenshots). However, that would mean duplication of files.

Who would be interested in this?

  • An artist who wants to pull up past creations to build on existing pieces. Such as vehicle parts, buildings, body poses, and landscapes.

Question

  • How do I implement tagging and filtering using the KRA extension?

image

The best place would be in File > Document information
There’s a Keywords field

A .kra file is a .zip file
Inside .zip you’ll find a file documentinfo.xml whre keywords are easily accessible:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document-info PUBLIC '-//KDE//DTD document-info 1.1//EN' 'http://www.calligra.org/DTD/document-info-1.1.dtd'>
<document-info xmlns="http://www.calligra.org/DTD/document-info">
<about>
 <title>test_keywords</title>
 <description></description>
 <subject>Testing</subject>
 <abstract><![CDATA[]]></abstract>
 <keyword>Car, red, accident</keyword>
 <initial-creator>Unknown</initial-creator>
 <editing-cycles>1</editing-cycles>
 <editing-time>5</editing-time>
 <date>2023-03-21T20:28:46</date>
 <creation-date>2023-03-21T20:26:56</creation-date>
 <language></language>
 <license></license>
</about>
<author>
 <full-name></full-name>
 <creator-first-name></creator-first-name>
 <creator-last-name></creator-last-name>
 <initial></initial>
 <author-title></author-title>
 <position></position>
 <company></company>
</author>
</document-info>

So it’s easy to search keywords .kra files

It’s already in my long list of todo BuliCommander but never got time to implement that :slight_smile:

Grum999

2 Likes

:slight_smile: Hello @Vye and welcome to the forum!

I don’t know what idea @Grum999 is typing right now, but you may be interested in @EyeOdin’s “Key Enter”-Plugin, a plugin made to tag any file you like. It can be used in combination with his plugin Imagine Board.

Michelist

Grum was faster! Hello @Grum999 :wave:

1 Like

@Grum999 , that’s a fine point, I read in the documentation that kra is a zip file. I was trying to use the file explorer to show me the tags, but digging into each archive is a bit more involved.

Notice in the second image I get the tagging and file explorer is able to pick it up.

I can think of writing a C# program to create a searchable app for the tags. Hoping that Krita or the folks at github had something built out for that sort of thing.

Hi, @Michelist,

I took a look at that post earlier, but the link is broken. Also, not sure if it applies to KRA files or other formats such as PNG, JPEG.

File explorer (looks like Windows explorer) is able to read JPEG metadata and store them in cache, to let you do make search on this metadata

Not sure it’s easy to create an extension to let file explorer being able to read keywords.
A shell extension exists (https://download.kde.org/stable/krita/KritaShellExtension-v1.2.4b-setup.exe) so maybe this could be extended to manage keywords? I don’t know

Grum999

Better yet, include the XMP metadata too.

Ahh, I see, and do now remember that @EyeOdin has pulled this plugin for a reason I just can not remember, but I think there is an issue or something like that.
Thank you for bringing this back into my mind, I’ll now mark it as pulled in my bookmarks. Please excuse my carelessness.

Michelist

No worries, thanks for the welcome ^^

1 Like

I found documentation on how to add it using C++.

It’s part of Krita while exporting to different file type. Not sure what it would take to include it as part of the file.

1 Like

Found a tool to view and edit the meta data of ExifTool by Phil Harvey. I haven’t figured out how to get to change the Krita meta data, but it works great on other formats. All I had to do was rename the exe and drag the image file on top to update a value.

image

The “KeyEnter” plugin is now the “Function>>” option of the “Imagine Board” plugin now, it has more operations there too. Key Enter was created to amplify Photobash search options for images but no one was interested in it for more than a year after I merged both to create make Imagine Board and work properly as both would make file checks into an exponential amount. Due to lack of interest I just reformed it after.

In theory Imagine Board can catalog any file with any extension but I never tested other file formats that much, I tested some blend files and they worked. But it focuses on batch renaming because XML only works on a couple of file formats but you can edit XML if you need, but you have to open it with Krita to do it. the Information tab does make it easier.

1 Like

@EyeOdin thank you for reply. Fine points indeed.

So this is what I found so far. My goal is to add key words to the KRA file so that it’s searchable within Windows. I know in Clip studio paint they make it inside the app but that’s limiting it and making it harder to use the system to search for stuff. I think it’s best to have it exposed so it’s easier to find what I need. Like using the explorer native tool to find things.

I don’t think it would be efficient if I would just go and make changes on my own and the XML. I think the gooey should add those properties. I thought about making a external app to make it searchable while using the other app, but then I can’t really use the file system explorer due to searching for me. Seems like more work.

I’m just looking around at these websites to get some ideas including the c++ code from krita repo. It looks like good starting points if I wanted to learn QT GUI and brush up on my c++. I’m coming mostly from a c sharp background. Right now I don’t understand why the executables don’t save additional information. I wonder if that’s just the limitation of OS. I saw that XMP is saved on jpegs. I don’t know why it can’t be the same for the executable.