Darktable: Renaming at Import

Hello

I use to name my pictures in the manner yy.mm.dd_name_xx(sequence).file extension. Unfortunately, it is not possible to rename them this way directly when importing. Only the following pattern gets near to that: $(EXIF_YEAR).$(EXIF_MONTH).$(EXIF_DAY)_$(JOBCODE)_$(SEQUENCE).$(FILE_EXTENSION). In this pattern the year quotes as 2024 instead of 24, and I have some 30.000 files with my pattern and I would not like to change that.

Therefore, I now have to rename all the files before importing them. Now my question: Is there a way to rename the files (when importing them) as per my wishes, which I do not know or could it be integrated in a future update.

Kind regards

Peter Schlaufer Switzerland

$(EXIF.YEAR.SHORT)

https://docs.darktable.org/usermanual/4.6/en/special-topics/variables/

3 Likes

Thank you

Though not all the mentioned variables may be available for the ‘import’ session.

It is interesting though, that there are two different sets of variables:
Compare darktable 4.6 user manual - import and darktable 4.6 user manual - variables

Do the regular variables also work during import?

Many simply do not exist before the image is processed (e.g. cropped size at the end of the pipeline, $(WIDTH.CROP)), or only exist in specific contexts (e.g. sequence number within an export job, $(SEQUENCE)).

I meant specifically for example $(EXIF_YEAR) vs $(EXIF.YEAR).