Terry, If you go to https://redmine.darktable.org/projects/darktable/issues and submit a new issue for a feature request, I'll code up the solution and do a pull request. In the meantime, when I submit the PR the code will be available in a branch on my github and I'll let you know where it is so that you can compile it and use it.
Bill On Thu, Dec 13, 2018 at 1:56 AM William Ferguson <wpfergu...@gmail.com> wrote: > In darktable, the gui version, I cropped an image, then turned crop off. > I went back to lighttable and created a style, croff, from the crop off > history item. > > I modified darktable-cli to initialize the data library, take the style > argument and --append which says append the style to the history stack > versus replace the history stack (which would wipe out all the edits). > > The first 4 arguments are to darktable-cli, the --core is to pass the > remaining arguments to the darktable instance that gets started from > darktable-cli. The argument --configdir /home/bill/.config/dttest, tells > darktable where to find the data.db that has the croff style. > > I tested the crop off style and a noise reduction style and both worked, > so I would think that just about any style that can be constructed would > work. > > > On Wed, Dec 12, 2018 at 11:32 PM Terry Duell <tdu...@iinet.net.au> wrote: > >> Hello Bill, >> >> On Thu, 13 Dec 2018 14:58:36 +1100, William Ferguson >> <wpfergu...@gmail.com> wrote: >> >> > /opt/dttest/bin/darktable-cli _7D_0651.CR2 _7D_0651.jpg --style "croff" >> > --append --core --configdir /home/bill/.config/dttest works for me. >> > >> > Oops, that's the version I just hacked together... :-D >> > >> >> I take it from the above that you have a local modified version of >> darktable-cli which takes a --style "croff" switch, but not sure what >> the >> following is all about. >> I've been beavering away here trying to figure out elegant ways of >> setting >> the clipping in the xmp files to "0", and then restoring after export, >> but >> if your feature is robust it would be a better solution. >> >> > Should I submit a PR? >> >> I'm not ofay with how these things are done, best see what the experts >> have to say. >> >> Cheers, >> -- >> Regards, >> Terry Duell >> >> ___________________________________________________________________________ >> darktable developer mailing list >> to unsubscribe send a mail to >> darktable-dev+unsubscr...@lists.darktable.org >> >> ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org