Hi,
maybe my answer was a bit quick. I diffed the xmp file and darktable-cli
indeed updated some entries, see below. BUT, when I then repeated call to
darktable-cli the xmp file was unmodified, but had again an updated
modification time.
So, two surprises: the export modfies the xmp file and the modfication
timestamp is changes wether the content of the xmp file has changed or not.
this is the diff:
joerg@dilbert:~/tmp$ diff
/fs/fotos/shotwell/2013/2013-11-01/IMG_6905.CR2.xmp IMG_6905.CR2.xmp
14c14
< darktable:auto_presets_applied="0">
---
> darktable:auto_presets_applied="1">
40c40,43
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>1</rdf:li>
> <rdf:li>2</rdf:li>
> </rdf:Seq>
43c46,49
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>1</rdf:li>
> <rdf:li>1</rdf:li>
> </rdf:Seq>
46c52,55
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>sharpen</rdf:li>
> <rdf:li>basecurve</rdf:li>
> </rdf:Seq>
49c58,61
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>000000400000003f0000003f</rdf:li>
>
<rdf:li>gz09eJxjYIAAM6vnNnqyn22E9n235b6aa3cy6rVdRaK9/Y970fYf95bbMzA0QPEoGEqADYnNhMQGAO0WEJo=</rdf:li>
> </rdf:Seq>
52c64,67
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM=</rdf:li>
> <rdf:li>gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM=</rdf:li>
> </rdf:Seq>
55c70,73
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>7</rdf:li>
> <rdf:li>7</rdf:li>
> </rdf:Seq>
58c76,79
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li>0</rdf:li>
> <rdf:li>0</rdf:li>
> </rdf:Seq>
61c82,85
< <rdf:Seq/>
---
> <rdf:Seq>
> <rdf:li> </rdf:li>
> <rdf:li> </rdf:li>
> </rdf:Seq>
regards
Joerg
2014-10-05 13:26 GMT+02:00 Joerg Beyer <joerg.be...@gmail.com>:
> Hi,
>
> I use darktable-cli, the non-gui cmdline tool to develop or export the
> images. I understand that is a read-only operation regarding the xmp files.
>
> from the man-page: "darktable-cli is a command line variant to be used to
> export images given the raw file and the accompanying xmp file."
>
>
> regards
> Joerg
>
> 2014-10-05 12:20 GMT+02:00 parafin <para...@paraf.in>:
>
>> Are you sure nothing is changed in those .xmp files? Might be some
>> module has been updated and params are converted to newer version and
>> saved back. And looking at the size it's obvious there is some
>> difference. Also can you check if the behaviour is the same when you
>> export files from DT GUI (without opening them in DR)?
>>
>> On Sun, 5 Oct 2014 11:01:04 +0200
>> Joerg Beyer <joerg.be...@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > I am setting up some automation with darktable-cli to generate some foto
>> > collections. I thought using good old make (the tool to automate
>> > compilations etc) would be a good idea, but I found out, that
>> darktable-cli
>> > changes the modification time of the xmp sidecar files.
>> >
>> > for illustration:
>> > joerg@dilbert:~/tmp$ date
>> > So 5. Okt 10:57:10 CEST 2014
>> > joerg@dilbert:~/tmp$ ls -la
>> > insgesamt 19180
>> > drwx------ 2 joerg joerg 4096 Okt 5 10:57 .
>> > drwxrwxr-x 172 joerg joerg 20480 Okt 5 09:49 ..
>> > -rw-rw-r-- 1 joerg joerg 19606386 Okt 5 10:56 IMG_6905.CR2
>> > -rw-rw-r-- 1 joerg joerg 4656 Okt 5 10:56 IMG_6905.CR2.xmp
>> > joerg@dilbert:~/tmp$ date
>> > So 5. Okt 10:57:19 CEST 2014
>> > joerg@dilbert:~/tmp$ darktable-cli IMG_6905.CR2 IMG_6905.CR2.xmp
>> > IMG_6905.jpg --width 1000 --height 1000
>> > [export_job] exported to `IMG_6905.jpg'
>> > joerg@dilbert:~/tmp$ ls -la
>> > insgesamt 19844
>> > drwx------ 2 joerg joerg 4096 Okt 5 10:57 .
>> > drwxrwxr-x 172 joerg joerg 20480 Okt 5 09:49 ..
>> > -rw-rw-r-- 1 joerg joerg 19606386 Okt 5 10:56 IMG_6905.CR2
>> > -rw-rw-r-- 1 joerg joerg 4674 Okt 5 10:57 IMG_6905.CR2.xmp
>> > -rw-rw-r-- 1 joerg joerg 679573 Okt 5 10:57 IMG_6905.jpg
>> >
>> > you can see, that the modifiaction time for the xmp file was updated
>> from
>> > 10:56 to 10:57.
>> >
>> > It seems to be no problem, if DT can't write the xmp file, because file
>> > permissions forbit it:
>> >
>> > joerg@dilbert:~/tmp$ chmod 440 IMG_6905.CR2.xmp
>> > joerg@dilbert:~/tmp$ rm IMG_6905.jpg
>> > joerg@dilbert:~/tmp$ darktable-cli IMG_6905.CR2 IMG_6905.CR2.xmp
>> > IMG_6905.jpg --width 1000 --height 1000
>> > [export_job] exported to `IMG_6905.jpg'
>> > joerg@dilbert:~/tmp$ ls -la
>> > insgesamt 19844
>> > drwx------ 2 joerg joerg 4096 Okt 5 10:59 .
>> > drwxrwxr-x 172 joerg joerg 20480 Okt 5 09:49 ..
>> > -rw-rw-r-- 1 joerg joerg 19606386 Okt 5 10:56 IMG_6905.CR2
>> > -r--r----- 1 joerg joerg 4674 Okt 5 10:57 IMG_6905.CR2.xmp
>> > -rw-rw-r-- 1 joerg joerg 679573 Okt 5 10:59 IMG_6905.jpg
>> >
>> > the jpeg file is OK.
>> >
>> > Would a patch to write the sidecars back to disk, only if the have
>> changes
>> > be accepted?
>> >
>> > regards
>> > Joerg
>>
>>
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> darktable-devel mailing list
>> darktable-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>>
>
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel