On mercredi 5 septembre 2018 19:27:27 CEST Patrick Shanahan wrote: > * Jarkko Toivonen <[email protected]> [09-05-18 13:19]: > > Hello all, > > > > I would like to add the version number to the exported image file name > > with > > prefix "_" but only if the version is bigger than 0. For example export > > image with file name "Image.jpg" if the version is 0 and "Image_1.jpg" if > > the version is 1. The two images are exported from the same original > > image, > > the version 1 is a virtual copy with different crop. > > > > Is that possible? I tried various experiments on the $(VERSION) variable > > but could not make it to work. I use Darktable v2.4.4 on Linux Mint 19. > > dt will do it for you, but... > > duplicate the original image withing dt > work the first instance and export > work the second instance and export > > you will find dt will store the second with the same filename as the first > with and extension such as: > 180901_122534_dse_4709.jpg > 180901_122534_dse_4709_01.jpg
In fact, dt will add the extra extension whenever you export and the target file exists already, unless you tell it *explicitly* to overwrite the existing file. And afaik, that option is reset after each export to 'create unique name'. Remco ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
