Creating Version with a prefix

Started by Nordlicht, January 01, 2018, 05:13:25 PM

Previous topic - Next topic

Nordlicht

Hello,

my previous process of outputting images looks like I'm setting a prefix in front of the name of the file.

Filename: 2017-12-26_GFX_0296.DNG
Output: (c)mk_2017-12-26_GFX_0296.DNG

Is it possible to handle this prefix to detect versions? Or is it better to use the Exif-Timestamp?

Thanks

Matthias

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Nordlicht

I've tried to figured it out by reading the manuell. But I don't find a way.

The filename is: 2017-12-26_GFX_0296.DNG

All files with starting with 2017-12-26_GFX_0296 are found as version.

The file (c)mk_2017-12-26_GFX_0296.jpg was not found as version.

Main-Expression:       \.(DNG|dng)$
Replace-Expression:   ^_*//
Link-Expression:        ^(_*{name})[+\-_]*[0-9|a-z]*\.(RAF|raf|tif|TIF|psd|PSD|jpg|JPG)$

Arthur

#3
What does (c)mk mean? Does it mean cmk or mk? Or does the name really contain the special characters? Do you have always the same prefix or do you want to support any prefix?

For any prefix it should be something like:
^.*{name}\.(RAF|raf|tif|TIF|psd|PSD|jpg|JPG)$

I think the expression is case insensitive, so it could be simplified to:

^.*{name}\.(RAF|TIF|PSD|JPG)$

thrinn

For a most simple example:

Master expression: \.(dng)$
Replacement Expression: (empty)
Link Expression: ^\(c\)mk_{name}\.(jpg|jpeg|tif)$

This means:
- Look for files with dng extension as master.
- No replacement expression. You do not need one here, so make is as simple as possible.
- Link all files that start exactly with (c)mk_, followed by the original file name. And link only versions that are JPGs or TIFs. Because brackets have a special meaning in RegExp, I had to escape them with a backslash.

If you want also DNGs as versions, you can add |dng to the last part of the link expression.

The sample you used as reference is more complicated because it also covers versions that consist of the original filename, followed by +, -, or _ and some numbers or letters...
Thorsten
Win 10 / 64, IMatch 2018, IMA

Nordlicht

Vielen Dank für Eure Hilfe. Ich habe mal folgendes getestet:

Master expression: \.(dng)$
Replacement Expression: (empty)
Link Expression: ^.*{name}[_]*[0-9|a-z]*\.(jpg|jpeg|tif|RAF|psd)$

Masterdateiname:

  • 2017-12-29_GFX_0296.DNG

Versionsdateinamen

  • (c)mk_2017-12-29_GFX_0296_web.jpg
  • 2017-12-29_GFX_0296_w.jpg
  • (c)mk_2017-12-29_GFX_0296_web.jpg

werden gefunden. Damit werden erstmal alle meine Anforderungen abgedeckt.

Viele Grüße

Matthias