Hello,
I was looking an easy and cost-free way to organize my pictures using “tags”. With Windows 10 (and probably previous versions) it’s possible to tag a picture by file metadata. Just right-click on file -> properties -> details tab:
After saving, the picture is “searchable” by textual tags with the usual search box.
But… how do you know which pictures have wich tags among thousand of pictures?
Here you are a PowerShell script (tested on Windows 10 with PS v5) to retrieve all the tags associated to images (but also music or any file) in a specific folder.
Thanks to the work of Scripting Guys, I rewrote a simpler script that shows only tag metadata (attribute n. 18) for each file that has it. Moreover, it will output the list of all tags discovered, so you will know which tags have been already used.
Editing the highlighted lines, you can change the attribute number you want to look at (see the original script on Scripting Guys for details) and the base folder for pictures. Starting from the base folder, it will scan all the contained files and subfolders.
This is an example of the output:
File Tags
—- —-
E:\2016-02 Polska, Torun\07 Torun.jpg singularity
E:\2016-02 Polska, Torun\14 Torun, Muzeum Piernika w Ann.jpg Ann; funny
E:\2016-02 Polska, Torun\15 Torun, Muzeum Piernika w Ann.jpg Ann; funny
E:\2016-02 Polska, Torun\16 Torun, Muzeum Piernika w Ann.jpg Ann; funny
E:\2016-02 Polska, Torun\17 Torun.jpg singularity
unique tags
———–
Ann
funny
singularity
The script is available at this link.