Photoshop files keywords
-
kirk234
- Posts: 2
- Joined: 02 Oct 2021 20:10
Photoshop files keywords
Can XYplorer see, show and search by keywords in psd files ? Import and convert them into its own tags ?
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Photoshop files keywords
Only via (scripted) custom columns
exiftool is required for this and the more custom columns that use this, the slower it will be
exiftool is required for this and the more custom columns that use this, the slower it will be
Into XYplorer's tag database? Sure, but again, only via scriptingImport and convert them into its own tags ?
One of my scripts helped you out? Please donate via Paypal
-
kirk234
- Posts: 2
- Joined: 02 Oct 2021 20:10
Re: Photoshop files keywords
Are customers supposed to know Python or something or is it something pretty simple so we could modify an example or use a few typical expressions?
I have zero coding experience so how useful the soft would be for me? Lets say I am willing to try with such script that read psd keywords and turn them into XY database tags . Where should I start?
I need a kind of DAM not only for images but 3d files like .blend or .max from Blender and 3d max and wonder how XYplorer could suite in the role?
Since I already use keywords for images it's kind of an important part
I have zero coding experience so how useful the soft would be for me? Lets say I am willing to try with such script that read psd keywords and turn them into XY database tags . Where should I start?
I need a kind of DAM not only for images but 3d files like .blend or .max from Blender and 3d max and wonder how XYplorer could suite in the role?
Since I already use keywords for images it's kind of an important part
Last edited by kirk234 on 03 Oct 2021 09:00, edited 2 times in total.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Photoshop files keywords
That depends.
E.g.: Import the description for the current (single) selected file as an XYplorer tag
Of course it would be way better to run exiftool only once by specifying a directory instead of a file and let it read all necessary information at once and parse that within the script and do the tagging.
Imho it's way more complicated to use exiftool than XYs scripting language^^
I'm not aware of a cli tool that reads metadata from .blend / .max files but that doesn't mean anything, I'm not using such files...
E.g.: Import the description for the current (single) selected file as an XYplorer tag
Code: Select all
$app = "D:\Tools\@Command Line Tools\exiftool\exiftool.exe";
$desc = trim(runret("""$app"" -s -s -s -description ""<curitem>"""), <crlf>, "R");
tagitems("tags", $desc, <curitem>);
Code: Select all
$app = "D:\Tools\@Command Line Tools\exiftool\exiftool.exe";
end (exists($app) != 1), quote($app) . <crlf 2> . "not found, aborted!";
// Get the "Description" and the "Exif image width"
$properties = <<<>>>
description
exifimagewidth
>>>;
$properties = trim($properties, <crlf>);
$cntProperties = gettoken($properties, "count", <crlf>);
end (!$properties), "No properties defined, aborted!";
// Join properties
$propSingle = "";
$propFormatted = "";
foreach($property, $properties, <crlf>, "e") {
$propSingle .= " -" . $property;
$propFormatted .= "<:>${" . $property . "}";
}
// Put them together for the exif command
$cmd = <<<>>>
-q $propSingle -p "${directory;s(/)(\\)g}$filename$propFormatted" "<curpath>"
>>>;
// Run it and do the tagging
$lines = trim(runret("""$app"" $cmd"), <crlf>, "R");
$cntLines = gettoken($lines, "count", <crlf>);
while ($i++ < $cntLines) {
$line = gettoken($lines, $i, <crlf>);
$file = gettoken($line, 1, "<:>", "t");
// If something went wrong and the output doesn't contain a file
if (exists($file) != 1) { continue; }
// Use a loop here
// It would allow to do the tagging via "ex" columns a bit easier
$tags = "";
$j = 0;
while ($j++ < $cntProperties) {
$tag = gettoken($line, $j + 1, "<:>", "t");
$tags .= $tag . ",";
}
$tags = formatlist($tags, "esd", ",");
if ($tags) { tagitems("tags", $tags, $file); }
}
I'm not aware of a cli tool that reads metadata from .blend / .max files but that doesn't mean anything, I'm not using such files...
One of my scripts helped you out? Please donate via Paypal
-
kirk234
- Posts: 2
- Joined: 02 Oct 2021 20:10
Re: Photoshop files keywords
Thanks highend for trying to help . But so far I can't make it work , The first script makes my psd file "pressENTER" tag
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Photoshop files keywords
So rename exiftool^^ And if the tag is empty afterwards, your file doesn't have that description property^^The stand-alone Windows executable does not require Perl. Just download and un-zip the archive then double-click on "exiftool(-k).exe" to read the application documentation, drag-and-drop files and folders to view meta information, or rename to "exiftool.exe" for command-line use. Runs on all versions of Windows.
Use
exiftool "path and file you've tried it with"from a command prompt and look what properties + values it returns
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 67322
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Photoshop files keywords
BTW, you know any good tool that lets me step thru animated gifs frame by frame?
FAQ | XY News RSS | XY X
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Photoshop files keywords
Ulead GIF Animator can do this. Incredible old but still very useful. The last version was 5.05 from iirc 2002...
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 67322
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Photoshop files keywords
Thanks!* Found something newer in the meantime: https://www.screentogif.com/ (I had an older version of it that could not do it, but the newer one has a nice viewer and editor)
* I tried to download Ulead GIF Animator and it felt like walking through the worst part of town at night. The software downloading business is not something you want to deal with anymore. Or do you know any trustworthy download site?
* I tried to download Ulead GIF Animator and it felt like walking through the worst part of town at night. The software downloading business is not something you want to deal with anymore. Or do you know any trustworthy download site?
To see the attached files, you need to log into the forum.
FAQ | XY News RSS | XY X
XYplorer Beta Club